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,
- Simple Perl Hello World Example
- Simple Perl Tutorial with MySQL
- How to Connect MySQL with Perl
- How To Configure Perl on WAMP
Step 1: Create the
helloworld.pl file and write down below code in this file.
print “Content-Type: text/html; charset=iso-8859-1\n\n”;
print “Hello World”;
Step 2: Run perl file using below command.
$ perl helloworld.pl