Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Learning Perl, Fourth Edition [Paperback]

Randal L. Schwartz , Tom Phoenix , brian d foy
4.0 out of 5 stars  See all reviews (32 customer reviews)


Available from these sellers.


Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Paperback --  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now
There is a newer edition of this item:
Learning Perl Learning Perl 4.3 out of 5 stars (20)
$22.31
In Stock.

Book Description

July 1, 2005 0596101058 978-0596101053 Fourth Edition

Learning Perl, better known as "the Llama book", starts the programmer on the way to mastery. Written by three prominent members of the Perl community who each have several years of experience teaching Perl around the world, this edition has been updated to account for all the recent changes to the language up to Perl 5.8.

Perl is the language for people who want to get work done. It started as a tool for Unix system administrators who needed something powerful for small tasks. Since then, Perl has blossomed into a full-featured programming language used for web programming, database manipulation, XML processing, and system administration--on practically all platforms--while remaining the favorite tool for the small daily tasks it was designed for. You might start using Perl because you need it, but you'll continue to use it because you love it.

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.

The book includes new exercises and solutions so you can practice what you've learned while it's still fresh in your mind. Here are just some of the topics covered:

  • Perl variable types
  • subroutines
  • file operations
  • regular expressions
  • text processing
  • strings and sorting
  • process management
  • using third party modules

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.


Customers Who Bought This Item Also Bought


Editorial Reviews

Review

"This book can be summed up as a solid introduction to Perl v5.8. There's no quick way to learn a language but finding time to work though this book will put you in good stead. Anyone past the basics of the language would be better off splashing out on "Perl Cookbook " or "Learning Perl". - Greg Matthews, news@UK, September 2005

About the Author

Randal Schwartz is one of the bestselling authors of all time, having been fortunate enough to coauthor two of the seminal books on learning Perl. In addition to writing Programming Perl and Learning Perl, Randal has been the Perl columnist for UNIX Review, Web Techniques, Sys Admin, and Linux Magazine.

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. 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 and is a frequent speaker at conferences. His writings on Perl appear on The O'Reilly Network and use.perl.org, and in The Perl Journal, Dr. Dobbs Journal, and The Perl Review.


Product Details

  • Paperback: 312 pages
  • Publisher: O'Reilly Media; Fourth Edition edition (July 1, 2005)
  • Language: English
  • ISBN-10: 0596101058
  • ISBN-13: 978-0596101053
  • Product Dimensions: 7 x 0.8 x 9.1 inches
  • Shipping Weight: 1.2 pounds
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (32 customer reviews)
  • Amazon Best Sellers Rank: #599,889 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews
19 of 21 people found the following review helpful
5.0 out of 5 stars This should be your first book on Perl August 29, 2006
Format:Paperback|Amazon Verified Purchase
I first tried to learn Perl by using the other O'Reilly book, "Programming Perl". I was completely lost. Then I found this book and my second attempt was much more successful. This book is great for self-teaching, and the book chapters should be read in order as each chapter builds on previous ones. Each chapter has plenty of good programming exercises with answers in the back of the book. I review this book in the context of the table of contents.

Chapter 1. Introduction
This chapter answers basic questions such as how to get and install Perl, how to construct a basic Perl program, and then takes you on a whirlwind tour of Perl.

Chapter 2. Scalar Data
As a general rule, when Perl has just one of something, that's a scalar, which is the topic of this chapter.

Chapter 3. Lists and Arrays
If a scalar is the "singular" in Perl, as described at the beginning of Chapter 2, the "plural" in Perl is represented by lists and arrays. A list is an ordered collection of scalars. An array is a variable that contains a list. In Perl, the two terms are often used as if they're interchangeable. But, to be accurate, the list is the data, and the array is the variable. You learn about these differences through practical code examples in this chapter.

Chapter 4. Subroutines
You've now seen and used some of the built-in system functions, such as chomp, reverse, and print. But, as other languages do, Perl has the ability to make subroutines. The name of a subroutine is another Perl identifier occasionally with an optional ampersand in front. There's a rule about when you can omit the ampersand and when you cannot, and that rule is discussed.

Chapter 5. Input and Output
This chapter covers the 80% of the I/O you'll need for most programs. If you're familiar with the workings of standard input, output, and error streams, you're ahead of the game. If not, you get you caught up by the end of this chapter.

Chapter 6. Hashes
In this chapter, you will see a feature that makes Perl one of the world's great programming languages--hashes. Though hashes are a powerful and useful feature, you may have used other powerful languages for years without ever hearing of hashes. But you'll use hashes in nearly every Perl program you'll write from now on; they're that important.

A hash is a data structure like an array, in that it can hold any number of values and retrieve these values at will. However, instead of indexing the values by number, as in arrays, you look up the values by name. That is, the indices aren't numbers but are arbitrary unique strings.

Chapter 7. In the World of Regular Expressions
Perl has many features that set it apart from other languages. Of all those features, one of the most important is its strong support for regular expressions. These allow fast, flexible, and reliable string handling. But that power comes at a price. Regular expressions are tiny programs in their own special language, built inside Perl. This means that you're about to learn another programming language, although, fortunately, it's a simple one. In this chapter, you'll visit the world of regular expressions, where, for the most part, you can forget about the world of Perl.

Chapter 8. Matching with Regular Expressions
In the previous chapter, you visited the world of regular expressions. Now you'll see how that world fits into the world of Perl.

Chapter 9. Processing Text with Regular Expressions
You can use regular expressions to change text, too. So far, the book has only shown you how to match a pattern. Now, you'll learn how to use patterns to locate the parts of strings that you want to change.

Chapter 10. More Control Structures
In this chapter, you'll see some alternative ways to write Perl code. For the most part, these techniques don't make the language more powerful, but they make it easier or more convenient to get the job done. You don't have to use these techniques in your own code, but don't skip this chapter. You're certain to see these control structures in other people's code, sooner or later.

Chapter 11. File Tests
Earlier, this book showed how to open a filehandle for output. Normally, that will create a new file, wiping out any existing file with the same name. Perhaps you want to check that there isn't a file by that name. Perhaps you need to know how old a given file is, or perhaps you want to go through a list of files to find which ones are larger than a certain number of bytes and not accessed for a certain amount of time. Perl has a complete set of tests you can use to find information about files, and that is the topic of this chapter.

Chapter 12. Directory Operations
The files created in the previous chapter were generally in the same place as your program. But modern operating systems let you organize files into directories, allowing you to keep your MP3 files away from your important work files so you don't accidentally send an MP3 file to your boss. In this chapter you'll see how Perl lets you manipulate these directories directly, in ways that are even fairly portable from one operating system to another.

Chapter 13. Strings and Sorting
Perl is designed to be good at solving programming problems that are about 90% working with text and 10% everything else. So it's no surprise that Perl has strong text-processing abilities, including all that can be done with regular expressions. But sometimes the regular expression engine is too fancy, and you need a simpler way of working with a string, as you'll see in this chapter.

Chapter 14. Process Management
One of the best parts of being a programmer is launching someone else's code so you don't have to write it yourself. This chapter shows how to manage your child processes by launching other programs directly from Perl. The examples in this chapter are primarily Unix-based; if you have a non-Unix system, expect to see some differences.

Chapter 15. Perl Modules
There is a lot more to Perl than what is in this book, and there are a lot of people doing a lot of interesting things with Perl. If there is a problem to solve, then somebody has probably already solved it and made their solution available on the Comprehensive Perl Archive Network (CPAN), which is a worldwide collection of servers and mirrors containing thousands of modules of reusable Perl code. If you want to learn how to write modules, consult the "Alpaca book". In this chapter, you learn how to use modules that already exist.

Chapter 16. Some Advanced Perl Techniques
The techniques in this chapter are only "advanced" in the sense that they aren't necessary for beginners. The first time you read this book, you may want to either skip or skim this chapter so you can get right to using Perl. Then come back to it later when you're ready to get more out of Perl.

Appendix A - Exercise Answers
Appendix B - Beyond the Llama
Comment | 
Was this review helpful to you?
9 of 9 people found the following review helpful
5.0 out of 5 stars Wonderful Introduction into Another Language March 22, 2007
Format:Paperback
I purchased this book hoping to gain insight into Perl after having experience with C, C++ and Java. I came back with not only a wonderful, base knowledge of the principals of Perl, but came out with some other skills as well.

This books provides a wonderful, quick, easy read for beginners and pros alike. The knowledge of the language coupled with the coverage of core concepts, methodology, practices and practical programmatic thinking was a delight to read/review.
Comment | 
Was this review helpful to you?
7 of 7 people found the following review helpful
5.0 out of 5 stars Keep it handy! April 30, 2007
Format:Paperback
I have owned this book for a couple of years now and I keep it on a bookshelf an arms reach away. It spends most of the time on my desk anyways. The book is excellent for beginners - I knew nothing of Perl when I bought it. I used it as a textbook and spent about a week reading through the chapters and doing the excercises. I've used it as a reference ever since. It really only covers basic Perl topic - there is a brief mention of databases at the end and two mentions of references in the whole book, but as a tutorial I certainly recommend it.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
3.0 out of 5 stars I certainly enjoyed this item. I would definitely recommend it to any...
I certainly enjoyed this item. I would definitely recommend it to any and everyone who is interested in this item!
Published 3 months ago by Lynn
5.0 out of 5 stars Very good book for perl begginers
I have not really gone through all the book, but it seems very nice for learning PERL from begining. I would recommend it, very good information for the price I paid.
Published 21 months ago by Leo :D
4.0 out of 5 stars (Almost) the best introduction to Perl
I own about two dozen Perl books, including the 2nd and 3rd editions of 'Learning Perl'. I'm now buying the 4th edition of 'Learning Perl', and this review is motivated by the... Read more
Published on April 1, 2010 by C. Carter
5.0 out of 5 stars Great Book for Beginners
To go along with everyone else, this book is great for beginning to learn how to program in PERL. A must for everyone.
Published on August 28, 2009 by M. Zavada
5.0 out of 5 stars One book for most of use
This is the book which led me into the Perl world. It's not the first Perl book I read. Before came to this book, I read some other books, took online lessions, etc. Read more
Published on March 17, 2008 by Z. Yu
5.0 out of 5 stars very good book for anyone new to perl
I recommend this book to anyone who is new to perl. The only thing I thought could have been better though was add more examples after each chapter. Read more
Published on October 27, 2007 by gsrakkar
1.0 out of 5 stars An introduction to Perl
This book is a gives a gentle introduction to Perll; by the time you have gone through this book, you would have touched on some very simple operations and common language idioms... Read more
Published on October 4, 2007 by M. A. ZAIDI
3.0 out of 5 stars Get the second edition
I learned Perl from the second edition of this book a few years ago, and was very impressed. After a few years without writing a single line of Perl, I needed to learn it again,... Read more
Published on October 4, 2007 by C. Higgins
5.0 out of 5 stars Great book
First of all, this book is only the beginning. It does teach the basics including arrays, scalars, functions and many other topics that are central to a basic understanding of... Read more
Published on August 11, 2007 by Deoren
5.0 out of 5 stars Perfect introduction to Perl scripting
I learnt Perl scripting from the third edition of The Llama, and recently had cause to brush up my Perl for a new job, so I thought I'd check out the fourth edition. Read more
Published on July 14, 2007 by Thing with a hook
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 



So You'd Like to...


Create a guide


Look for Similar Items by Category