Learning Perl

Front Cover
"O'Reilly Media, Inc.", Jun 27, 2008 - Computers - 352 pages
10 Reviews

Learning Perl, popularly known as "the Llama," is the book most programmers rely on to get started with Perl. The bestselling Perl tutorial since it was first published in 1993, this new fifth edition covers recent changes to the language up to Perl 5.10.

This book reflects the combined experience of its authors, who have taught Perl at Stonehenge Consulting since 1991. Years of classroom testing and experience helped shape the book's pace and scope, and this edition is packed with exercises that let you practice the concepts while you follow the text. Topics include:

  • Perl data & variable types
  • Subroutines
  • File operations
  • Regular expressions
  • String manipulation
  • Lists & sorting
  • Process management
  • Smart matching
  • Using third party modules

Perl is the language for people who want to get work done. Originally targeted to sysadmins for heavy-duty text processing, Perl is now a full-featured programming language suitable for almost any task on almost any platform-from short fixes on the command line to web applications, bioinformatics, finance, and much more. Other books may teach you to program in Perl, but this book will turn you into a Perl programmer.


What people are saying - Write a review

User ratings

5 stars
4 stars
3 stars
2 stars
1 star

LibraryThing Review

User Review  - josh314 - LibraryThing

Gentle and entertaining introduction to basic Perl programming. It's probably not the most efficient way to learn the language for an experienced programmer since it gets a bit chatty and drawn out at times and does not get into advanced features. Nonetheless, it was worth the time to read. Read full review

LibraryThing Review

User Review  - RicDay - LibraryThing

My edition is a little old now, but this is absolutely the best book on Perl if you want to learn this powerful, complex language. Just be sure to get the newest edition available. Read full review


Chapter 1 Introduction
Chapter 2 Scalar Data
Chapter 3 Lists and Arrays
Chapter 4 Subroutines
Chapter 5 Input and Output
Chapter 6 Hashes
Chapter 7 In the World of Regular Expressions
Chapter 8 Matching with Regular Expressions
Chapter 12 File Tests
Chapter 13 Directory Operations
Chapter 14 Strings and Sorting
Chapter 15 Smart Matching and givenwhen
Chapter 16 Process Management
Chapter 17 Some Advanced Perl Techniques
Appendix A Exercise Answers
Appendix B Beyond the Llama

Chapter 9 Processing Text with Regular Expressions
Chapter 10 More Control Structures
Chapter 11 Perl Modules

Other editions - View all

Common terms and phrases

Popular passages

Page 31 - Equal == eq Not equal != ne Less than < lt Greater than > gt Less than or equal to <= le Greater than or equal to >= ge Here are some example expressions using these comparison operators: 35 != 30 + 5 # false 35 == 35.0 # true '35' eq '35.0' # false (comparing as strings) 'fred' lt 'barney' # false 'fred' lt 'free' # true 'fred
Page 25 - 12fred34" isn't numeric in addition (+) at . /my_program line 17 (#l) (W numeric) The indicated string was fed as an argument to an operator that expected a numeric value instead. If you're fortunate the message will identify which operator was so unfortunate.
Page 4 - ... uninitiated, but to the seasoned Perl programmer, it looks like the notes of a grand symphony. If you follow the guidelines of this book, your programs should be easy to read and easy to maintain, and they probably won't win The Obfuscated Perl Contest. How Did Perl Get to Be So Popular? After playing with Perl a bit, adding stuff here and there, Larry released it to the community of Usenet readers, commonly known as "the Net." The users on this ragtag fugitive fleet of systems around the world...

References to this book

All Book Search results &raquo;

Bibliographic information