An Introduction to Perl :


PERL (Practical Extraction and Report Language) written by Larry Wall

It has a rich variety of functions for handling strings, arrays, the system interface, networking and more.

Although it was originally from UNIX, Perl now runs on all operating systems like MS-DOS, Windows/NT, Mac, and many others.

The Perl motto is "there's more than one way to do it!"

Things to remember when writing Perl scripts :


Now a small perl script for you to try.

Open a file called myfirst.pl in any text editors (eg, vi in unix edit in dos) and just type the following lines and save:

#!/usr/bin/perl
#Comment : This is my first perl script
print "A small perl script";

Now as I said earlier, you have to make the perl script executable so type in the command prompt

      chmod 755 myfirst.pl

Now type,

      perl myfirst.pl

The output will be,

      A samll perl script

Why Perl?

Perl has become popular for many reasons, including: