Perl 5 Tutorial
First Edition
(Release Candidate 2)
Chan Bernard Ki HongPerl is copyright by Larry Wall.
Linux is a trademark of Linus Torvalds.
Unix is a of AT&T Bell Laboratories.
Perl 5 Tutorial
First Edition
Author: Chan Bernard Ki Hong (webmaster@cbkihong.com)
Web site: http://www.cbkihong.com
Date of Printing: September 14, 2003
Total Number of Pages: 240
APrepared from LT X source les by the author.E
Important: Please note that this is a preview edition of the document and is released for
collection of feedback purposes only. Therefore, drastic modi cations may be made to this
document at any time until it is completed and nalized.
DISCLAIMER
This document is released as is without guarantee for accuracy or suitability of any kind, so
use it at your own risk. However, if you notice any errors, or have any suggestions on how I
can further improve this tutorial, please feel free to forward me your comments through the
email feedback form or feedback forum. Your comments are very much appreciated.Contents
1 Introduction to Programming 1
1.1 What is Perl? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 A Trivial Introduction to Computer Programming . . . . . . . . . . . . . . . . . 1
1.3 Scripts vs. Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 An Overview of the Software Development Process . . . . . . . . . . . . . . . . 4
2 Getting Started 7
2.1 What can Perl do? . . . . . . . . . . . . . . ...
Voir