Please consider the latest edition.
Description
Informed by their years of success at teaching Perl as consultants, the authors have re-engineered the Llama to better match the pace and scope appropriate for readers getting started with Perl, while retaining the detailed discussion, thorough examples, and eclectic wit for which the Llama is famous. 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 point to the Llama. With good reason. Other books may teach you to program in Perl, but this book will turn you into a Perl programmer.
Full Description
Table of Contents
-
Chapter 1 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
-
-
Chapter 2 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 undefscalar variablesundef Value
-
The definedfunctionsdefined Function
-
Exercises
-
-
Chapter 3 Lists and Arrays
-
Accessing Elements of an Array
-
Special Array Indices
-
List Literals
-
List Assignment
-
Interpolating Arrays into Strings
-
The foreach Control Structure
-
Scalar and List Context
-
<STDIN> in List Context
-
Exercises
-
-
Chapter 4 Subroutines
-
Defining a Subroutine
-
Invoking a Subroutine
-
Return Values
-
Arguments
-
Private Variables in Subroutines
-
Variable-Length Parameter Lists
-
Notes on Lexical (my) Variables
-
The use strictpragmasuse strict Pragma
-
The returnoperatorsreturn Operator
-
Non-Scalar Return Values
-
Exercises
-
-
Chapter 5 Input and Output
-
Input from Standard Input
-
Input from the Diamond Operator
-
The Invocation Arguments
-
Output to Standard Output
-
Formatted Output with printf
-
Filehandles
-
Opening a Filehandle
-
Fatal Errors with die
-
Using Filehandles
-
Reopening a Standard Filehandle
-
Exercises
-
-
Chapter 6 Hashes
-
What Is a Hash?
-
Hash Element Access
-
Hash Functions
-
Typical Use of a Hash
-
Exercises
-
-
Chapter 7 In the World of Regular Expressions
-
What Are Regular Expressions?
-
Using Simple Patterns
-
Character Classes
-
Exercises
-
-
Chapter 8 Matching with Regular Expressions
-
Matches with m//
-
Option Modifiers
-
Anchors
-
The Binding Operator, =~
-
Interpolating into Patterns
-
The Match Variables
-
General Quantifiers
-
Precedence
-
A Pattern Test Program
-
Exercises
-
-
Chapter 9 Processing Text with Regular Expressions
-
Substitutions with s///
-
The split Operator
-
The joinfunctionsjoin Function
-
m// inlist contextm// in List Context
-
More Powerful Regular Expressions
-
Exercises
-
-
Chapter 10 More Control Structures
-
The unlesscontrol structuresunless Control Structure
-
The untilcontrol structuresuntil Control Structure
-
Expression Modifiers
-
The Naked Block Control Structure
-
The elsif Clause
-
Autoincrement and Autodecrement
-
The forcontrol structuresfor Control Structure
-
Loop Controls
-
Logical Operators
-
Exercise
-
-
Chapter 11 File Tests
-
File Test Operators
-
The statfunctionsstat and lstatfunctionslstat Functions
-
The localtimefunctionslocaltime Function
-
Bitwise Operators
-
Using the Special Underscore Filehandle
-
Exercises
-
-
Chapter 12 Directory Operations
-
Moving Around the Directory Tree
-
Globbing
-
An Alternate Syntax for Globbing
-
Directory Handles
-
Recursive Directory Listing
-
Manipulating Files and Directories
-
Removing Files
-
Renaming Files
-
Links and Files
-
Making and Removing Directories
-
Modifying Permissions
-
Changing Ownership
-
Changing Timestamps
-
Exercises
-
-
Chapter 13 Strings and Sorting
-
Finding a Substring with index
-
Manipulating a Substring with substr
-
Formatting Data with sprintf
-
Advanced Sorting
-
Exercises
-
-
Chapter 14 Process Management
-
The system Function
-
The execfunctionsexec Function
-
The Environment Variables
-
Using Backquotes to Capture Output
-
Processes as Filehandles
-
Getting Down and Dirty with fork
-
Sending and Receiving Signals
-
Exercises
-
-
Chapter 15 Perl Modules
-
Finding Modules
-
Installing Modules
-
Using Simple Modules
-
Exercise
-
-
Chapter 16 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
-
Slices
-
Exercise
-
-
Appendix Exercise Answers
-
Answers to Chapter 2 Exercises
-
Answers to Chapter 3 Exercises
-
Answers to Chapter 4 Exercises
-
Answers to Chapter 5 Exercises
-
Answers to Chapter 6 Exercises
-
Answers to Chapter 7 Exercises
-
Answers to Chapter 8 Exercises
-
Answers to Chapter 9 Exercises
-
Answer to Chapter 10 Exercise
-
Answers to Chapter 11 Exercises
-
Answers to Chapter 12 Exercises
-
Answers to Chapter 13 Exercises
-
Answers to Chapter 14 Exercises
-
Answer to Chapter 15 Exercise
-
Answer to Chapter 16 Exercise
-
-
Appendix Beyond the Llama
-
Further Documentation
-
Regular Expressions
-
Packages
-
Extending Perl's Functionality
-
Some Important Modules
-
Pragmas
-
Databases
-
Other Operators and Functions
-
Mathematics
-
Lists and Arrays
-
Bits and Pieces
-
Formats
-
Networking and IPC
-
Security
-
Debugging
-
The Common Gateway Interface (CGI)
-
Command-Line Options
-
Built-in Variables
-
Syntax Extensions
-
References
-
Tied Variables
-
Operator Overloading
-
Dynamic Loading
-
Embedding
-
Converting Other Languages to Perl
-
Converting find Command Lines to Perl
-
Command-Line Options in Your Programs
-
Embedded Documentation
-
More Ways to Open Filehandles
-
Locales and Unicode
-
Threads and Forking
-
Graphical User Interfaces (GUIs)
-
And More . . .
-
-
Colophon
Product Details
- Title:
- Learning Perl, Fourth Edition
- By:
- Randal L. Schwartz, Tom Phoenix, brian d foy
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- July 2005
- Pages:
- 312
- Print ISBN:
- 978-0-596-10105-3
- | ISBN 10:
- 0-596-10105-8
Customer Reviews
