Perl Programming
Perl Programming
programming
Perl history
Practical Extraction and Report Language
developed by Larry Wall in year1987
Developed as a general-purpose Unix
scripting language to make report processing
easier.
It has undergone many changes and
revisions and become widely popular
amongst programmers.
Latest Perl version is _____
Larr y
Operators
Arithmetic operators
a%b
Returns the remainder of "b" from "a".
4
Variables
Variables hold variable pieces of information they are just storage containers for numbers,
strings, and compound structures
Scalar
Array
Hash
5
Scalar
A scalar holds numbers and strings,
Scalar variable name starts with $ and
Example
$a = 5;
$language = perl;
Simple example
Array
Array Index
is scalar
Example
Array index
Array size
14
2.
3.
4.
16
17
18
19
Hashes
Example
%months = ('January' => 31,
...
'November' => 30,
'December' => 31);
20
Books:
Learning Perl
By Rancho Wall
Published by O'Reilly
Programming Perl
By Rancho Wall, Tom Christiansen and Jon Orwant
Published by O'Reilly
23
Web
www.perl.com
www.perldoc.org
www.perl.org
www.perlmonks.org
24
Questions???
25