Skip to content

Learning Perl

Best in textbook rentals since 2012!

ISBN-10: 0596001320

ISBN-13: 9780596001322

Edition: 3rd 2001

Authors: Randal L. Schwartz, Tom Phoenix

List price: $34.95
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

If you ask Perl programmers today what book they relied on most when they were learning Perl, you'll find that an overwhelming majority will name "Learning Perl--also known affectionately as "the Llama." The first edition of "Learning Perl appeared in 1993 and has been a bestseller ever since. Written by two of the most prominent and active members of the Perl community, this book is the quintessential tutorial for the Perl programming language. Perl began as a tool for Unix system administrators, used for countless small tasks throughout the workday. It has since blossomed into a full-featured programming language on practically every computing platform, and is used for web programming,…    
Customers also bought

Book details

List price: $34.95
Edition: 3rd
Copyright year: 2001
Publisher: O'Reilly Media, Incorporated
Publication date: 7/31/2001
Binding: Paperback
Pages: 336
Size: 7.00" wide x 9.00" long x 0.75" tall
Weight: 1.188
Language: English

Randal L. Schwartz is a two-decade veteran of the software industry. He is skilled in software design, system administration, security, technical writing, and training. Randal has coauthored the "must-have" standards: Programming Perl, Learning Perl, Learning Perl for Win32 Systems, and Effective Perl Learning, and is a regular columnist for WebTechniques, PerformanceComputing, SysAdmin, and Linux magazines. He is also a frequent contributor to the Perl newsgroups, and has moderated comp.lang.perl.announce since its inception. His offbeat humor and technical mastery have reached legendary proportions worldwide (but he probably started some of those legends himself). Randal's desire to give…    

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…    

Preface
Introduction
Questions and Answers
What Does "Perl" Stand For?
How Can I Get Perl?
How Do I Make a Perl Program?
A Whirlwind Tour of Perl
Exercises
Scalar Data
What Is Scalar Data?
Numbers
Strings
Perl's Built-in Warnings
Scalar Variables
Output with print
The if Control Structure
Getting User Input
The chomp Operator
The while Control Structure
The undef Value
The defined Function
Exercises
Lists and Arrays
Accessing Elements of an Array
Special Array Indices
List Literals
List Assignment
Interpolating Arrays into Strings
The foreach Control Structure
Perl's Favorite Default: $_
Scalar and List Context
[left angle bracket]STDIN[right angle bracket] in List Context
Exercises
Subroutines
System and User Functions
Defining a Subroutine
Invoking a Subroutine
Return Values
Arguments
Private Variables in Subroutines
The local Operator
Variable-length Parameter Lists
Notes on Lexical (my) Variables
The use strict Pragma
The return Operator
Exercises
Hashes
What Is a Hash?
Hash Element Access
Hash Functions
Typical Use of a Hash
Exercises
I/O Basics
Input from Standard Input
Input from the Diamond Operator
The Invocation Arguments
Output to Standard Output
Formatted Output with printf
Exercises
Concepts of Regular Expressions
What Are Regular Expressions?
Using Simple Patterns
A Pattern Test Program
Exercises
More About Regular Expressions
Character Classes
General Quantifiers
Anchors
Memory Parentheses
Precedence
Exercises
Using Regular Expressions
Matches with m//
Option Modifiers
The Binding Operator, =~
Interpolating into Patterns
The Match Variables
Substitutions with s///
The split Operator
The join Function
Exercises
More Control Structures
The unless Control Structure
The until Control Structure
Expression Modifiers
The Naked Block Control Structure
The elsif Clause
Autoincrement and Autodecrement
The for Control Structure
Loop Controls
Logical Operators
Exercise
Filehandles and File Tests
What Is a Filehandle?
Opening a Filehandle
Fatal Errors with die
Using Filehandles
Reopening a Standard Filehandle
File Tests
Exercises
Directory Operations
Moving Around the Directory Tree
Globbing
An Alternate Syntax for Globbing
Directory Handles
Recursive Directory Listing
Exercises
Manipulating Files and Directories
Removing Files
Renaming Files
Links and Files
Making and Removing Directories
Modifying Permissions
Changing Ownership
Changing Timestamps
Using Simple Modules
Exercises
Process Management
The system Function
The exec Function
The Environment Variables
Using Backquotes to Capture Output
Processes as Filehandles
Getting Down and Dirty with Fork
Sending and Receiving Signals
Exercises
Strings and Sorting
Finding a Substring with index
Manipulating a Substring with substr
Formatting Data with sprintf
Advanced Sorting
Exercises
Simple Databases
DBM Files and DBM Hashes
Manipulating Data with pack and unpack
Fixed-length Random-access Databases
Variable-length (Text) Databases
Exercises
Some Advanced Perl Techniques
Trapping Errors with eval
Picking Items from a List with grep
Transforming Items from a List with map
Unquoted Hash Keys
More Powerful Regular Expressions
Slices
Exercise
Exercise Answers
Beyond the Llama
Index