Learning Perl

by
Edition: 4th
Format: Paperback
Pub. Date: 2005-08-30
Publisher(s): Oreilly & Associates Inc
  • Free Shipping Icon

    Receive Free Shipping To The More Store!*

    *Marketplace items do not qualify for the free shipping promotion.

List Price: $39.95

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Written by three prominent and active members of the Perl community, this book is the quintessential tutorial to the Perl programming language. The fourth edition was updated to explain new features in Perl 5.8 and what to expect of Perl Version 6, but the book also retains the essential information that applies the current working version of Perl. The authors re-engineered the book to match the pace and scope appropriate for new learners, while retaining the detailed discussion, thorough examples, and eclectic wit that the book is famous for. This methodically updated tutorial explains in a clear and concise manner how to work with data structures, minimal matching, and topics like threading and data parsing. The book also introduces references, objects, and modules, and explains how packages are implemented in Perl.

Author Biography

Randal Schwartz is one of the bestselling authors of all time, having been fortunate enough to coauthor two of the seminal books on learning Perl. In addition to writing Programming Perl and Learning Perl, Randal has been the Perl columnist for UNIX Review, Web Techniques, Sys Admin, and Linux Magazine.

Tom Phoenix has been working in the field of education since 1982. After more than thirteen years of dissections, explosions, work with interesting animals, and high-voltage sparks during his work at a science museum, he started teaching Perl classes for Stonehenge Consulting Services, where he's worked since 1996. Since then, he has traveled to many interesting locations, so you might see him soon at a Perl Mongers' meeting. When he has time, he answers questions on Usenet's comp.lang.perl.misc and comp.lang.perl.moderated newsgroups, and contributes to the development and usefulness of Perl. Besides his work with Perl, Perl hackers, and related topics, Tom spends his time on amateur cryptography and speaking Esperanto. His home is in Portland, Oregon.

brian d foy has been an instructor for Stonehenge Consulting Services since 1998. He founded the first Perl user group, the New York Perl Mongers, as well as the Perl advocacy nonprofit Perl Mongers, Inc., which helped form more than 200 Perl user groups across the globe. He maintains the perlfaq portions of the core Perl documentation, several modules on CPAN, and some stand-alone scripts. He's the publisher of The Perl Review and is a frequent speaker at conferences. His writings on Perl appear on The O'Reilly Network and use.perl.org, and in The Perl Journal, Dr. Dobbs Journal, and The Perl Review.

Table of Contents

Preface xi
Introduction
1(17)
Questions and Answers
1(2)
What Does ``Perl'' Stand For?
3(5)
How Can I Get Perl?
8(3)
How Do I Make a Perl Program?
11(5)
A Whirlwind Tour of Perl
16(1)
Exercises
17(1)
Scalar Data
18(20)
Numbers
18(3)
Strings
21(3)
Perl's Built-in Warnings
24(2)
Scalar Variables
26(2)
Output with print
28(4)
The if Control Structure
32(1)
Getting User Input
33(1)
The chomp Operator
34(1)
The while Control Structure
35(1)
The undef Value
35(1)
The defined Function
36(1)
Exercises
37(1)
Lists and Arrays
38(16)
Accessing Elements of an Array
39(1)
Special Array Indices
40(1)
List Literals
40(2)
List Assignment
42(3)
Interpolating Arrays into Strings
45(1)
The foreach Control Structure
46(2)
Scalar and List Context
48(3)
<STDIN> in List Context
51(1)
Exercises
52(2)
Subroutines
54(14)
Defining a Subroutine
54(1)
Invoking a Subroutine
55(1)
Return Values
55(2)
Arguments
57(2)
Private Variables in Subroutines
59(1)
Variable-Length Parameter Lists
60(2)
Notes on Lexical (my) Variables
62(1)
The use strict Pragma
63(1)
The return Operator
64(2)
Non-Scalar Return Values
66(1)
Exercises
67(1)
Input and Output
68(20)
Input from Standard Input
68(2)
Input from the Diamond Operator
70(2)
The Invocation Arguments
72(1)
Output to Standard Output
73(3)
Formatted Output with printf
76(2)
Filehandles
78(1)
Opening a Filehandle
79(3)
Fatal Errors with die
82(2)
Using Filehandles
84(2)
Reopening a Standard Filehandle
86(1)
Exercises
87(1)
Hashes
88(12)
What Is a Hash?
88(3)
Hash Element Access
91(4)
Hash Functions
95(2)
Typical Use of a Hash
97(2)
Exercises
99(1)
In the World of Regular Expressions
100(7)
What Are Regular Expressions?
100(1)
Using Simple Patterns
101(3)
Character Classes
104(2)
Exercises
106(1)
Matching with Regular Expressions
107(14)
Matches with m//
107(1)
Option Modifiers
108(2)
Anchors
110(1)
The Binding Operator, =~
111(1)
Interpolating into Patterns
112(1)
The Match Variables
113(3)
General Quantifiers
116(1)
Precedence
117(1)
A Pattern Test Program
118(1)
Exercises
119(2)
Processing Text with Regular Expressions
121(14)
Substitutions with s///
121(3)
The split Operator
124(1)
The join Function
125(1)
m// in List Context
126(1)
More Powerful Regular Expressions
127(7)
Exercises
134(1)
More Control Structures
135(19)
The unless Control Structure
135(1)
The until Control Structure
136(1)
Expression Modifiers
137(1)
The Naked Block Control Structure
138(1)
The elsif Clause
139(1)
Autoincrement and Autodecrement
140(2)
The for Control Structure
142(2)
Loop Controls
144(4)
Logical Operators
148(5)
Exercise
153(1)
File Tests
154(10)
File Test Operators
154(4)
The stat and Istat Functions
158(2)
The localtime Function
160(1)
Bitwise Operators
160(2)
Using the Special Underscore Filehandle
162(1)
Exercises
163(1)
Directory Operations
164(17)
Moving Around the Directory Tree
164(1)
Globbing
165(1)
An Alternate Syntax for Globbing
166(1)
Directory Handles
167(1)
Recursive Directory Listing
168(1)
Manipulating Files and Directories
169(1)
Removing Files
169(1)
Renaming Files
170(1)
Links and Files
171(5)
Making and Removing Directories
176(2)
Modifying Permissions
178(1)
Changing Ownership
178(1)
Changing Timestamps
179(1)
Exercises
179(2)
Strings and Sorting
181(12)
Finding a Substring with index
181(1)
Manipulating a Substring with substr
182(2)
Formatting Data with sprintf
184(2)
Advanced Sorting
186(5)
Exercises
191(2)
Process Management
193(15)
The system Function
193(3)
The exec Function
196(1)
The Environment Variables
197(1)
Using Backquotes to Capture Output
198(3)
Processes as Filehandles
201(2)
Getting Down and Dirty with fork
203(1)
Sending and Receiving Signals
204(2)
Exercises
206(2)
Perl Modules
208(9)
Finding Modules
208(1)
Installing Modules
209(1)
Using Simple Modules
210(6)
Exercise
216(1)
Some Advanced Perl Techniques
217(12)
Trapping Errors with eval
217(3)
Picking Items from a List with grep
220(1)
Transforming Items from a List with map
221(1)
Unquoted Hash Keys
222(1)
Slices
222(5)
Exercise
227(2)
Exercise Answers 229(26)
Beyond the Llama 255(20)
Index 275

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.