First Perl Program: Hello World


This is a simple perl program that prints Hello World!! on the screen.

 

#!/usr/bin/perl
# hello.pl

use strict;
use warnings;

print "Content-type: text/html\n\n";

print "Hello World!";

 

Save the code to the file, say, hello.pl.


The result is the desired string on the screen:

 

Hello World!

Hi, I'm Siswoyo. 

Programmer, System Analyst, System Analyst and Developer, SAP Coordinator, Application Support Analyst, Technical Analyst, Field Service Engineer,  ...