Book description
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, database manipulation, XML processing, and (of course) system administration--all this while still remaining the perfect tool for the small daily tasks it was designed for. Perl is quick, fun, and eminently useful. Many people start using Perl because they need it, but they continue to use Perl because they love it.The third edition of Learning Perl has not only been updated for Perl 5.6, but has also been rewritten from the ground up to reflect the needs of programmers learning Perl today. Informed by their years of success at teaching Perl as consultants, the authors have re-engineered the book to better match the pace and scope appropriate for readers trying to get started with Perl, while retaining the detailed discussion, thorough examples, and eclectic wit for which the book is famous.This edition of the Llama includes an expanded and more gently-paced introduction to regular expressions, new exercises and solutions designed so readers can practice what they've learned while it's still fresh in their minds, and an overall reworking to bring Learning Perl into the new millennium.Perl is a language for getting your job done. Other books may teach you to program in Perl, but this book will turn you into a Perl programmer.
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Preface
- 1. Introduction
-
2. Scalar Data
- 2.1. What Is Scalar Data?
- 2.2. Numbers
- 2.3. Strings
- 2.4. Perl’s Built-in Warnings
- 2.5. Scalar Variables
- 2.6. Output with print
- 2.7. The if Control Structure
- 2.8. Getting User Input
- 2.9. The chomp Operator
- 2.10. The while Control Structure
- 2.11. The undef Value
- 2.12. The defined Function
- 2.13. Exercises
- 3. Lists and Arrays
-
4. Subroutines
- 4.1. System and User Functions
- 4.2. Defining a Subroutine
- 4.3. Invoking a Subroutine
- 4.4. Return Values
- 4.5. Arguments
- 4.6. Private Variables in Subroutines
- 4.7. The local Operator
- 4.8. Variable-length Parameter Lists
- 4.9. Notes on Lexical (my) Variables
- 4.10. The use strict Pragma
- 4.11. The return Operator
- 4.12. Exercises
- 5. Hashes
- 6. I/O Basics
- 7. Concepts of Regular Expressions
- 8. More About Regular Expressions
- 9. Using Regular Expressions
- 10. More Control Structures
- 11. Filehandles and File Tests
- 12. Directory Operations
- 13. Manipulating Files and Directories
- 14. Process Management
- 15. Strings and Sorting
- 16. Simple Databases
- 17. Some Advanced Perl Techniques
-
A. Exercise Answers
- A.1. Answers to Chapter 2 Exercises
- A.2. Answers to Chapter 3 Exercises
- A.3. Answers to Chapter 4 Exercises
- A.4. Answers to Chapter 5 Exercises
- A.5. Answers to Chapter 6 Exercises
- A.6. Answers to Chapter 7 Exercises
- A.7. Answers to Chapter 8 Exercises
- A.8. Answers to Chapter 9 Exercises
- A.9. Answer to Chapter 10 Exercise
- A.10. Answers to Chapter 11 Exercises
- A.11. Answers to Chapter 12 Exercises
- A.12. Answers to Chapter 13 Exercises
- A.13. Answers to Chapter 14 Exercises
- A.14. Answers to Chapter 15 Exercises
- A.15. Answers to Chapter 16 Exercises
- A.16. Answer to Chapter 17 Exercises
-
B. Beyond the Llama
- B.1. Further Documentation
- B.2. Regular expressions
- B.3. Packages
- B.4. Extending Perl’s Functionality
-
B.5. Some Important Modules
- B.5.1. The CGI and CGI_Lite Modules
- B.5.2. The Cwd Module
- B.5.3. The Fatal Module
- B.5.4. The File::Basename Module
- B.5.5. The File::Copy Module
- B.5.6. The File::Spec Module
- B.5.7. The Image::Size Module
- B.5.8. The Net::SMTP Module
- B.5.9. The POSIX Module
- B.5.10. The Sys::Hostname Module
- B.5.11. The Text::Wrap Module
- B.5.12. The Time::Local Module
- B.6. Pragmas
- B.7. Databases
- B.8. Other Operators and Functions
- B.9. Mathematics
- B.10. Lists and Arrays
- B.11. Bits and Pieces
- B.12. Formats
- B.13. Networking and IPC
- B.14. Security
- B.15. Debugging
- B.16. The Common Gateway Interface (CGI)
- B.17. Command-Line Options
- B.18. Built in Variables
- B.19. Syntax Extensions
- B.20. References
- B.21. Tied Variables
- B.22. Operator Overloading
- B.23. Dynamic Loading
- B.24. Embedding
- B.25. Converting Other Languages to Perl
- B.26. Converting find Command Lines to Perl
- B.27. Command-line Options in Your Programs
- B.28. Embedded Documentation
- B.29. More Ways to Open Filehandles
- B.30. Locales and Unicode
- B.31. Threads and Forking
- B.32. Graphical User Interfaces (GUIs)
- B.33. And More...
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Learning Perl, 3rd Edition
- Author(s):
- Release date: July 2001
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596001322
You might also like
book
Learning Perl, 6th Edition
If you're just getting started with Perl, this is the book you want—whether you're a programmer, …
book
Learning Perl, Second Edition
In this update of a bestseller, two leading Perl trainers teach you to use the most …
book
Learning Perl, Fourth Edition
Learning Perl, better known as "the Llama book", starts the programmer on the way to mastery. …
book
Programming Perl, 3rd Edition
Perl is a powerful programming language that has grown in popularity since it first appeared in …