Major features of Perl

By: Boopathy Emailed: 1644 times Printed: 2116 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Perl is a general-purpose programming language originally developed for text manipulation, but as of 2010 is used for a wide range of tasks including system administration, web development, network programming, games, bioinformatics, and GUI development.

The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal). Its major features include support for multiple programming paradigms (procedural, object-oriented, and functional styles), reference counting memory management (without a cycle-detecting garbage collector), built-in support for text processing, and a large collection of third-party modules.

According to Larry Wall, Perl has two slogans. The first is "There's more than one way to do it", commonly known as TMTOWTDI. The second slogan is "Easy things should be easy and hard things should be possible".

Major Features

The overall structure of Perl derives broadly from C. Perl is procedural in nature, with variables, expressions, assignment statements, brace-delimited blocks, control structures, and subroutines.

Perl also takes features from shell programming. All variables are marked with leading sigils, which unambiguously identify the data type (for example, scalar, array, hash) of the variable in context. Importantly, sigils allow variables to be interpolated directly into strings. Perl has many built-in functions that provide tools often used in shell programming (although many of these tools are implemented by programs external to the shell) such as sorting, and calling on system facilities.

Perl takes lists from Lisp, hashes ("associative arrays") from AWK, and regular expressions from sed. These simplify and facilitate many parsing, text-handling, and data-management tasks.

Perl 5 added features that support complex data structures, first-class functions (that is, closures as values), and an object-oriented programming model. These include references, packages, class-based method dispatch, and lexically scoped variables, along with compiler directives (for example, the strict pragma). A major additional feature introduced with Perl 5 was the ability to package code as reusable modules. Larry Wall later stated that "The whole intent of Perl 5's module system was to encourage the growth of Perl culture rather than the Perl core."

All versions of Perl do automatic data-typing and automatic memory-management. The interpreter knows the type and storage requirements of every data object in the program; it allocates and frees storage for them as necessary using reference counting (so it cannot deallocate circular data structures without manual intervention). Legal type-conversions — for example, conversions from number to string — are done automatically at run time; illegal type conversions are fatal errors.


Perl Home | All Perl Tutorials | Latest Perl Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Boopathy
Perl6 - The future of Perl
Perl for Windows
Implementation of Perl
Perl Applications
The design of Perl
Major features of Perl
Why was it named Perl?
History of Perl?
What is Perl?

More Tutorials in Perl
Steps to Install perl-Apache-DBI in linux
Extract filename from full path using perl
Flush history file on disk (unique hosts reach flush limit of 20000) - Awstats
What is Perl?
History of Perl?
Why was it named Perl?
Major features of Perl
The design of Perl
Perl Applications
Implementation of Perl
Perl for Windows
Perl6 - The future of Perl
POST to URL from Perl Script

More Latest News
Most Viewed Articles (in Perl )
Major features of Perl
History of Perl?
Perl Applications
Flush history file on disk (unique hosts reach flush limit of 20000) - Awstats
Steps to Install perl-Apache-DBI in linux
POST to URL from Perl Script
What is Perl?
Why was it named Perl?
Implementation of Perl
Perl for Windows
Perl6 - The future of Perl
Extract filename from full path using perl
The design of Perl
Most Emailed Articles (in Perl)
History of Perl?
Flush history file on disk (unique hosts reach flush limit of 20000) - Awstats
What is Perl?
Steps to Install perl-Apache-DBI in linux
Why was it named Perl?
The design of Perl
Perl for Windows
Extract filename from full path using perl
Major features of Perl
Perl Applications
POST to URL from Perl Script
Implementation of Perl
Perl6 - The future of Perl