Perl Basics for Beginners

Perl Basics for Beginners

Perl Basics for Beginners

Perl was the first popular solution for writing CGI scripts and even large scale web applications, and is still very popular. It is extensively used by such large, highly scalable sites. Perl is a great first language for people with no programming experience. It is easy to install, and actually comes pre-installed on most non-Windows operating systems. It has a very open syntax which, although very complex, is also very forgiving.

Perl is a flexible, feature-rich and powerful dynamic programming language. Perl code is very concise and can be written very quickly, while still performing well in most cases. One can often achieve in one line of Perl what requires 100s of lines in C and other languages.

Perl is available on almost every Unix system, and is easily installable on Microsoft Windows. It is more robust and more portable for many tasks than writing Unix shell scripts.



Functions and Statements:




Numbers, Strings and Quotes:



Strings are a bit more complex. A string is a collection of characters in either single or double quotes. The difference between single quotes and double quotes is that single quotes mean that their contents should be taken literally, while double quotes mean that their contents should be interpreted.


If functions are Perl’s verbs, then variables are its nouns. Perl has three types of variables: scalars, arrays and hashes. Think of them as “things,” “lists,” and “dictionaries.” In Perl, all variable names are a punctuation character, a letter or underscore, and one or more alphanumeric characters or underscores.



Arrays :
Arrays are lists of scalars. Array names begin with @. You define arrays by listing their contents in parentheses, separated by commas. Arrays always return their contents in the same order;




For Perl Online Training please visit