Learning Perl

Front Cover
"O'Reilly Media, Inc.", Jun 27, 2008 - Computers - 352 pages
47 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
19
4 stars
18
3 stars
5
2 stars
2
1 star
3

Gentle introduction to Perl. Light paced but good. - Goodreads
Very hard to read this book from cover to cover. - Goodreads
Good book to keep around for reference purposes. - Goodreads
Kind of a shitty reference, honestly. - Goodreads

Review: Learning Perl

User Review  - Ahmed Shreef - Goodreads

The book can be good as an introduction to the basics of perl programming but it doesn't mention a lot of the OOP related features in perl. So if you're working on something more than a simple script ... Read full review

Review: Learning Perl

User Review  - Goodreads

A very gentle introduction to Perl. Topics are discussed in detail for the novice and I even noticed that the footnotes are well written and informative. A good place to start your trip in the world of Perl. Read full review

Contents

Chapter 1 Introduction
1
Chapter 2 Scalar Data
19
Chapter 3 Lists and Arrays
39
Chapter 4 Subroutines
55
Chapter 5 Input and Output
71
Chapter 6 Hashes
93
Chapter 7 In the World of Regular Expressions
107
Chapter 8 Matching with Regular Expressions
117
Chapter 12 File Tests
179
Chapter 13 Directory Operations
191
Chapter 14 Strings and Sorting
209
Chapter 15 Smart Matching and givenwhen
221
Chapter 16 Process Management
233
Chapter 17 Some Advanced Perl Techniques
249
Appendix A Exercise Answers
261
Appendix B Beyond the Llama
295

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

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;

About the author (2008)

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 back to the Perl community inspired him to help create and provide initial funding for The Perl Institute. He is also a founding board member of the Perl Mongers (perl.org), the worldwide Perl grassroots advocacy organization. Since 1985, Randal has owned and operated Stonehenge Consulting Services, Inc. Randal can be reached for comment at merlyn@stonehenge.com or (503) 777-0095, and welcomes questions on Perl and other related topics.

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, a Perl user since he was a physics graduate student, and a die-hard Mac user since he first owned a computer. 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, a magazine devoted to Perl, and is a frequent speaker at conferences including the Perl Conference, Perl University, MarcusEvans BioInformatics '02, and YAPC. His writings on Perl appear in The O'Reilly Network, The Perl Journal, Dr. Dobbs, and The Perl Review, on use.perl.org, and in several Perl usenet groups.

Bibliographic information