Simple Perl Hello World Example

Hi friends, in this tutorial i will describe simple hello example in Perl.Perl is very simple programming language and easy to use.
in the below script first line tells the script compiler and second line tells the response content of script.Third line contains the 'print' constructor which is use to print variable in Perl.

You can also check other tutorial of perl,

Step 1: Create the file and write down below code in this file.

Select Code
print "Content-Type: text/html; charset=iso-8859-1\n\n";
print "Hello World";

Step 2: Run perl file using below command.
$ perl