A Perl script or program consists of one or more statements. These statements are simply written in the script in a straightforward fashion. There is no need to have a main() function or anything of that kind.
Perl statements end in a semi-colon:
Comments start with a hash symbol and run to the end of the line:
Whitespace is irrelevant:

… except inside quoted strings:
Double quotes or single quotes may be used around literal strings:
However, only double quotes “interpolate” variables and special characters such as newlines (n ):
Numbers don’t need quotes around them:
You can use parentheses for functions’ arguments or omit them according to your personal taste. They are only required occasionally to clarify issues of precedence. Following two statements produce same result.

PERL File Extension:

A PERL script can be created inside of any normal simple-text editor program. There are several programs available for every type of platform. There are many programs designed for programmers available for download on the web.
Regardless of the program you choose to use, a PERL file must be saved with a .pl (.PL) file extension in order to be recognized as a functioning PERL script. File names can contain numbers, symbols, and letters but must not contain a space. Use an underscore (_) in places of spaces.

First PERL Program:

Assuming y
ou are already on Unix $ prompt. So now open a text file hello.pl using vi or vim editor and put the following lines inside your file.
#!/usr/bin is the path where you have installed PERL

Execute PERL Script:

Before you execute your script be sure to change the mode of the script file and give execution priviledge, generally a setting of 0755 works perfectly.
Now to run hello.pl Perl program from the Unix command line, issue the following command at your UNIX $ prompt:
This will produce following result:

Perl Command Line Flags:

Command line flags affect how Perl runs your program.
This will produce following result:
You can use -e option at command line which lets you execute Perl statements from the command line.

What Do You Think on This ? Say Here