Learning Perl

Front Cover
"O'Reilly Media, Inc.", Jun 23, 2011 - Computers - 363 pages
26 Reviews

If you're just getting started with Perl, this is the book you want—whether you're a programmer, system administrator, or web hacker. Nicknamed "the Llama" by two generations of users, this bestseller closely follows the popular introductory Perl course taught by the authors since 1991. This 6th edition covers recent changes to the language up to version 5.14.

Perl is suitable for almost any task on almost any platform, from short fixes to complete web applications. Learning Perl teaches you the basics and shows you how to write programs up to 128 lines long—roughly the size of 90% of the Perl programs in use today. Each chapter includes exercises to help you practice what you've just learned. Other books may teach you to program in Perl, but this book will turn you into a Perl programmer.

Topics include:

  • Perl data and variable types
  • Subroutines
  • File operations
  • Regular expressions
  • String manipulation (including Unicode)
  • Lists and sorting
  • Process management
  • Smart matching
  • Use of third party modules
  

What people are saying - Write a review

User ratings

5 stars
12
4 stars
9
3 stars
3
2 stars
1
1 star
1

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  - Alexander Karelas - Goodreads

It was funny, easy, fun to read, and overall a good introduction to Perl. Read full review

Review: Learning Perl

User Review  - Gustavo Chaves - Goodreads

My note at the time I read it: "Basic. Horrible language." :-) Read full review

Contents

Chapter 1 Introduction
1
Chapter 2 Scalar Data
21
Chapter 3 Lists and Arrays
43
Chapter 4 Subroutines
63
Chapter 5 Input and Output
81
Chapter 6 Hashes
107
Chapter 7 In the World of Regular Expressions
121
Chapter 8 Matching with Regular Expressions
133
Chapter 12 File Tests
203
Chapter 13 Directory Operations
215
Chapter 14 Strings and Sorting
235
Chapter 15 Smart Matching and givenwhen
247
Chapter 16 Process Management
259
Chapter 17 Some Advanced Perl Techniques
277
Appendix A Exercise Answers
295
Appendix B Beyond the Llama
331

Chapter 9 Processing Text with Regular Expressions
155
Chapter 10 More Control Structures
169
Chapter 11 Perl Modules
189
Appendix C A Unicode Primer
343
Index
353
Copyright

Common terms and phrases

About the author (2011)

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.

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.

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.

Bibliographic information