Michael U. Ang
History of Perl
Perl was introduced in 1987
reason for its creation was that Mr. Wall was
unhappy by the functionality that sed, C, awk
and the Bourne Shell offered him. He looked for
a language that will combine all of their best
features, while having as
of its own.
Cont… A brief history of Perl
Perl became especially popular as a language
for writing server
side scripts for web
But that's not the only use of perl, as it is
commonly used for system administration tasks,
managing database data, as well as writing GUI
written by Larry Wall
A GNU product FREE, Open
Interpreted and not compiled!
º used as a scripting language
originally designed for UNIX
, but is
portable to other O/S
stable, cross platform programming
What does Perl stand for?
‘Perl’ isn’t really an acronym
2 favorite expansion:
It's not PERL or P.E.R.L.
'Perl' refers to the language
'perl' to the interpreter that runs the programs
written in Perl
Make easy things easy; make difficult things
TIMTOWTDI: There is more than one way to do
DWIM: Do What I Mean
was never introduced to the public. Larry
Wall only distributed this copy to his
released on to usenet's alt.comp.sources
on Dec 18, 1987
expanded the regular expression support
(Perl 2 introduced Henry Spencer's
regular expression package)
introduced the ability to handle binary data
introduced the first Camel book.
final Perl4 release, 4.036 in 1993
drastic changes in syntax has been made;
it makes a lot of the old code obsolete.
introduced such things as hard
references, modules, objects and lexical
[in other words: introduced everything
else, including the ability to introduce
date stable version is 5.8
works in the way for (coming soon)
will include many new features not found
in perl version 5
Perl takes the best features from other
languages, such as C, awk, sed, sh, and BASIC,
Perls database integration interface (DBI)
party databases including Oracle,
MySQL and others.
works with HTML, XML, and other mark
Cont… Perl Features
supports both procedural and OO programming.
The Perl interpreter can be embedded into other
Perl & the Web
Perl is the most popular web programming
language due to its text manipulation capabilities
and rapid development cycle.
Perl is widely known as "the duct
tape of the
Perl's CGI.pm module, part of Perl's standard
distribution, makes handling HTML forms simple.
Perl can handle encrypted Web data, including
Cont… Perl and the Web
Perl can be embedded into web servers to
speed up processing by as much as 2000%.
mod_perl allows the Apache web server to
embed a Perl interpreter.
Perl's DBI package makes web
Perl is interpreted, so no compilation is needed.
To use Perl, create a text file that contains the
Perl program. It is recommended that you end
the filenames of your Perl scripts with "
order to distinguish them as Perl scripts.
After you are done, invoke the Perl interpreter
with the name of the file you created. Assuming
your file is name "myscript.pl", you should type:
The Perl development cycle
# perl myscript.pl
Sample programs where made using OpenPerl IDE
echo strings and expressions to the
The "Hello World" program can be written in perl
The string is enclosed in double
quotes(" ... ")
bec that's how string constants are represented
colon at the end indicates that this is
the end of a perl command. Every perl command
should be terminated with a semicolon.
The "Hello World" program
print "Hello World";
Applications written in Perl
Amazon Online Auctions
allowed for close of auctions and customer feedback
PayPal Shopping Cart Program
was designed to work directly with PayPal.
Forum bulletin board
is a free bulletin board, written in Perl.
Features: guests posting limitations, reply e
notification for members, and many moderating tools.
based email program written in Perl.
It checks POP and IMAP and sends via sendmail or
features: custom folders, address book, attachments,
html email, filters, sorting, search, message labeling and
more. It requres only CGI.pm.
Url’s and Books
the mother of all Perl sites
(according to the site)
CPAN is the
large collection of Perl software, modules and
Note that CPAN is also the name of a Perl module, CPAN.pm, which is used to
download and install Perl software from the CPAN archive.
a loose association of international Perl User Groups.
(integrated development environment)
an IDE for writing and
debugging Perl scripts
with any standard Perl
written in Delphi 5 Object
Pascal and Perl and it is
Perl Ports (Binary Distributions)
contains listing of available Perl distribution codes for
almost all types of operating systems.
Perl Mailing lists
Larry Wall, Tom
Christiansen, Jon Orwant
(O'Reilly July 2000)
Randal L. Schwartz, Tom
Phoenix (O'Reilly, July
PERL How to Program
by Deitel and Deitel et.al.
(Prentice Hall, February
Perl by Example
Quigley (Prentice Hall
PTR, September 2001)
by Wainwright et.al.
(Wrox Press, April 2001)
Wainwright et.al. (Wrox
Press, February 2001)
Perl Purity Test
Just for fun.