Cover image for Learn Perl in a weekend
Learn Perl in a weekend
Nowers, Thomas.
Personal Author:
Publication Information:
[Rocklin, Calif.] : Premier Press, [2002]

Physical Description:
xx, 327 pages : illustrations ; 24 cm.
General Note:
Includes index.
Format :


Call Number
Material Type
Home Location
Item Holds
QA76.73.P22 N69 2002 Adult Non-Fiction Central Closed Stacks

On Order



Get ready to learn the most popular programming language of the Internet! Begin your journey into the world of Perl Friday evening as you install ActivePerl and create an HTML page. On Saturday, cover the basic building blocks of Perl, Perl operators, statements, and expressions. On Sunday, learn object-oriented programming and pull your earlier sessions together in a complete Perl game program. Wrap things up as you touch on advanced Perl topics including security, XML integration, and using Perl with CGI.

Table of Contents

Introductionp. xvii
Friday Evening Introducing Perlp. 1
What Is Perl?p. 3
A Brief Look at Programmingp. 6
Installing ActivePerl on Your Machinep. 10
Using Perl with DOSp. 12
Take a Breakp. 17
Writing Your First Perl Program with HTMLp. 17
Block One: Program Planningp. 25
Summaryp. 28
Saturday Morning Variables and Other Fun Stuffp. 29
Using Print and Getting Inputp. 31
Using Scalarsp. 39
Exploring Listsp. 51
Take a Breakp. 58
Arrays and Hashesp. 58
Retrieving User Inputp. 74
Program Blockp. 77
Summaryp. 80
Saturday Afternoon Using Files and Perl Operationsp. 81
Handling Filesp. 83
Using Directoriesp. 97
Take a Breakp. 98
Using Mathematical Operationsp. 98
Programming Block: Parsing to a File, RNGp. 113
Summaryp. 120
Saturday Evening Expressing and Statingp. 121
Understanding Statementsp. 123
Different Types of Perl Loopsp. 132
Take a Breakp. 139
Working with Routines and Subroutinesp. 139
Different Types of Perl Declarationsp. 147
Programming Block: The Game Loopp. 150
Summaryp. 160
Sunday Morning Objects and Object-Oriented Programmingp. 161
An Introduction to Object-Oriented Programmingp. 163
Uses of OOP in Perlp. 170
Building a Perl Packagep. 172
Using Perl Referencesp. 175
Using Classes in Perlp. 177
Take a Breakp. 182
Using Objects in Perlp. 182
Using Methods in Perlp. 187
Using Inheritance in Perlp. 189
Program Block: Using OOP Constructions in Your Program Game Loopp. 192
Summaryp. 205
Sunday Afternoon Putting It All Togetherp. 207
Expanding the Saturday Morning Program Blockp. 209
Expanding the Saturday Afternoon Program Blockp. 220
Expanding the Saturday Evening Program Loopp. 224
Expanding the Sunday Morning Objects and Classesp. 229
Take a Breakp. 231
Putting It All Togetherp. 231
Summaryp. 248
Sunday Evening Learning Advanced Perl Techniquesp. 249
Using Modules, Packages, and Librariesp. 251
Understanding Perl and the Internetp. 258
Take a Breakp. 276
Understanding Perl Securityp. 276
Debuggingp. 282
Understanding Windows and Unix Compatibilityp. 285
Working with Databasesp. 287
Beyond this Bookp. 287
Perl 6p. 290
Summaryp. 294
Appendix A Using the Companion Web Sitep. 295
Chapter 1 Friday Eveningp. 296
Chapter 2 Saturday Morningp. 296
Chapter 3 Saturday Afternoonp. 297
Chapter 4 Saturday Eveningp. 298
Chapter 5 Sunday Morningp. 298
Chapter 6 Sunday Afternoonp. 298
Chapter 7 Sunday Eveningp. 299
Appendix B A Quick Perl Language Referencep. 301
Glossaryp. 309
Indexp. 316