Have one to sell? Sell yours here
Learning Perl Objects, References, and Modules
 
See larger image
 
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.

Learning Perl Objects, References, and Modules [Paperback]

Randal L. Schwartz (Author), Tom Phoenix (Author)
4.1 out of 5 stars  See all reviews (16 customer reviews)


Available from these sellers.


Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Paperback --  

Book Description

0596004788 978-0596004781 June 16, 2003 1

Perl is a versatile, powerful programming language used in a variety of disciplines, ranging from system administration to web programming to database manipulation. One slogan of Perl is that it makes easy things easy and hard things possible. This book is about making the leap from the easy things to the hard ones.

Learning Perl Objects, References & Modules offers a gentle but thorough introduction to advanced programming in Perl. Written by the authors of the best-selling Learning Perl, this book picks up where that book left off. Topics include:

  • Packages and namespaces
  • References and scoping
  • Manipulating complex data structures
  • Object-oriented programming
  • Writing and using modules
  • Contributing to CPAN
Following the successful format of Learning Perl, each chapter in the book is designed to be small enough to be read in just an hour or two, ending with a series of exercises to help you practice what you've learned. To use the book, you just need to be familiar with the material in Learning Perl and have ambition to go further.

Perl is a different language to different people. It is a quick scripting tool for some, and a fully-featured object-oriented language for others. It is used for everything from performing quick global replacements on text files, to crunching huge, complex sets of scientific data that take weeks to process. Perl is what you make of it. But regardless of what you use Perl for, this book helps you do it more effectively, efficiently, and elegantly.

Learning Perl Objects, References & Modules is about learning to use Perl as a programming language, and not just a scripting language. This is the book that separates the Perl dabbler from the Perl programmer.


Customers Who Bought This Item Also Bought


Editorial Reviews

Review

"Here we have a typical O'Reilly book, with all the humor that makes them so popular. The book is littered with examples trying to bring a lighter side to what is often a pretty heavy subject." - Linux Magazine

About the Author

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.


Product Details

  • Paperback: 224 pages
  • Publisher: O'Reilly Media; 1 edition (June 16, 2003)
  • Language: English
  • ISBN-10: 0596004788
  • ISBN-13: 978-0596004781
  • Product Dimensions: 9.1 x 7.1 x 0.5 inches
  • Shipping Weight: 12.8 ounces
  • Average Customer Review: 4.1 out of 5 stars  See all reviews (16 customer reviews)
  • Amazon Best Sellers Rank: #1,093,611 in Books (See Top 100 in Books)

More About the Author

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

 

Customer Reviews

16 Reviews
5 star:
 (8)
4 star:
 (5)
3 star:
 (1)
2 star:    (0)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
4.1 out of 5 stars (16 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

53 of 54 people found the following review helpful:
5.0 out of 5 stars Perfect book for taking your Perl skills to the next level, September 3, 2003
By 
A Williams "honestpuck" (Neutral Bay, NSW Australia) - See all my reviews
(VINE VOICE)    (REAL NAME)   
This review is from: Learning Perl Objects, References, and Modules (Paperback)
In the world of Perl there was once only the 'camel book,' held in perhaps as much reverence as 'K & R' among C programmers. It certainly appealed to roughly the same audience, those who wanted a short, sharp introduction to a programming language. It was with a problem that needed solving and a copy of the camel book that I started as a Perl programmer.

Then for those that wanted a introduction to Perl and programming Randal L. Schwartz wrote Learning Perl, a book that has arguably become the definitive textbook for teaching Perl. The one weakness was that it left off before really getting to the guts of building large, complex projects in Perl. It did not cover classes, objects, breaking your code up into pieces or the more arcane aspects of variables, references. For this we had to resort to the last few chapters of the 'camel book' and I, for one, have never really been totally comfortable at this end of the language; when I'm reading someone else's code it might take a couple of reads to fully understand the process.

Now this weakness has been well and truly addressed. Schwartz, with Tom Phoenix, has written "Learning Perl Objects, References & Modules", a volume that takes the same steady approach to teaching you the more advanced topics as the earlier 'Learning Perl'. Schwartz has spent the years since writing 'Learning Perl' teaching and writing. You can tell, this is a superbly written book, not that 'Learning Perl' wasn't well written; it's just that this volume is far better.

The Guts

The book starts with a chapter on building larger programs that covers @INC, eval, do and require before discussing packages and scope. It then has several chapters on references that explains in well understandable fashion and increasing complexity all the ins and outs of references including dereferencing, nested references, references to subroutines and references to anonymous data before a final chapter on references that gives you some incredibly useful tricks such as sorting and recursively defining complex data.

The book continues with three chapters that give you a solid grounding in Perl objects. Here Schwartz has assumed that you know at least a little about object oriented programming, some may feel the need for more explanation of concepts might be required, but if you've had any experience in OOP before then the clear examples and descriptions here are probably all you want.

Modules are not as well covered, with only a single chapter, but it is hard to think of anything left out, it covers using them and building your own so well that it left me wondering what all the fuss was about, "seems obvious to me." The book concludes with chapters on building a distribution out of your module, testing it using make test (with Test::Harness), Test::Simple and Test::More before a chapter telling you how to contribute to CPAN.

Each chapter of the book concludes with a number of small exercises, designed to be done in just a few minutes, that cement the learning of the previous chapter. The answers to these are at the end of the book.

Conclusion

Once I'd finished I felt I had a much more solid grounding in Perl, certainly I was much better able to understand another programmer's code that dealt with such things as subroutine references and some complex data structures. While the subject matter of this book is almost entirely covered in 'Programming Perl' the tutorial aspects of this book made it much easier going. The style would be familiar to anyone who has read 'Learning Perl', light without being frivolous and extremely well written, Schwartz seems a master at reducing complexity to manageable bites.

This book is deceptively easy to follow, each new idea built onto earlier ones, each new language concept introduced in an easy manner. The writing is excellent, it's hard to explain why I appreciated it so much. That may be the reason, the writing isn't forced or heavy or too light or obvious. It just allows the solid material of the book to shine through. Go to the ubiquitous O'Reilly website and grab the example chapter (the site also has a few Errata, the Table of Contents and the code from the book) and give it a look.

I think this may well become a classic, I may well in ten years time talk of Schwartz's books with the same awe I now talk of Brian Kernighan's. I'll certainly eagerly await his next book and keep this one close until it comes. Oh, and Randal, how about 'Software Tools for Perl Programmers'?

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


27 of 27 people found the following review helpful:
5.0 out of 5 stars Important Note - Discontinued, May 4, 2006
This review is from: Learning Perl Objects, References, and Modules (Paperback)
New editions of this book are no longer in the works, as this title is being discontinued. O'Reilly's "Intermediate Perl" by the same authors (Randal L. Schwartz, brian d foy, and Tom Phoenix) is the new edition of this book. The first edition of "Intermediate Perl" was released March 2006. So if you're thinking about purchasing this book, purchase "Intermediate Perl" instead. It includes the same material (albeit updated) by the same authors. Once again, this title has been discontinued.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


35 of 37 people found the following review helpful:
5.0 out of 5 stars Learning more Perl (sequel to "Learning Perl"), June 23, 2003
By 
Gregor Theis (Meerbusch Deutschland) - See all my reviews
(REAL NAME)   
This review is from: Learning Perl Objects, References, and Modules (Paperback)
"Learning Perl Objects, References and Modules " is the sequel to "Learning Perl". It starts of where "Learning Perl" finished. In "Learning Perl" I learned how to write Perl programs. In "Learning Perl Objects" I learned how to write better and bigger Perl programs. The audience of this book is the advanced Perl Programmer that wants to improve his Perl knowledge in the area of OO programming.

If you want to use Perl's OO functions, you have to know a lot about references and modules / packages (an OO package is just a normal package that is called in OO fashion). The first couple of chapters (chapter 1-7) talk about these basics of Perl OO programming that can (and should) be used even without using OO. I love chapter 5 about complex data structures. The chapters 8-11 describe the Perl OO implementation. Further Meta information about how to program packages, CPAN and testing is provided in the chapters 12-15.

The setup of the book is didactically very good and the nicely "incremental". You can see that the authors developed this book out of courses that they have held and improved for a long time. Because the book provides a nice stepwise introduction into the subject, one should read it from beginning to end. To really practice the newly learned skills, Tom and Randal provide some example exercises (with solutions in the appendix) at the end of every chapter.

Although I am not a native English speaker, I found the book very readable and humorous. Again this is another O'Reilly book that presents a possibly dry subject in a very accessible way. Even though the explanations are very good, be prepared to read some chapters twice (or more) to get your "aha" moment.

Coming from a C++ background I still find it strange that Perl needs so little additional syntax for OO programming. This has of course some (little) disadvantages. Some things like calling abstract methods and class methods (or rather errors calling these methods) are not enforced at compile time but can be enforced at runtime (if you want). Tom and Randal explain this in their book of course (and hopefully I will not forget to implement this in my modules).

There is one great downside of this book: I would have loved it to be longer. This book has about 180 effective pages (plus appendix, index, foreword), which makes it a rather fast read compared to some of the "normal" IT brick stones.

"Learning Perl Objects" is an extraordinary good introductory book into advanced Perl programming with references, modules and objects. If you have liked "Learning Perl" and you want to proceed on your path to Perl mastery, you will love this book.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(4)

Your tags: Add your first tag
 

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

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject