- Amazon Student members save an additional 10% on Textbooks with promo code TEXTBOOK10. Enter code TEXTBOOK10 at checkout. Here's how (restrictions apply)
Object Oriented Perl: A Comprehensive Guide to Concepts and Programming Techniques Paperback – Jan 1 2000
Special Offers and Product Promotions
Customers Who Bought This Item Also Bought
No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet, and computer.
To get the free app, enter your e-mail address or mobile phone number.
Perl has always been a powerful and popular programming language, but with its new object capabilities, it can do even more. Written for anyone with a little Perl experience, Damian Conway's Object Oriented Perl provides an invaluable guide to virtually every aspect of object-oriented programming in Perl.
The most notable thing about Object Oriented Perl is Conway's excellent perspective on object-oriented concepts and how they are implemented in Perl. This book does a remarkable job of cutting through traditional jargon and illustrating how basic object-oriented design techniques are handled in Perl. (A useful appendix attests to the author's wide-ranging knowledge, with a comparison of Smalltalk, Eiffel, C++, and Java with Perl, including a summary of object-oriented syntax for each.) This book also features a truly excellent review of basic Perl syntax.
Throughout this text, the author shows you the basics of solid object design (illustrated using classes that model music CDs). Basic concepts like inheritance and polymorphism get thorough and clear coverage. The book also points out common mistakes and provides many tips for navigating the powerful and flexible (yet sometimes tricky) nuances of using Perl objects. For instance, Conway shows how to achieve true data encapsulation in Perl (which generally allows calls across modules) as well as its natural support for generic programming techniques.
He also pays special attention to popular object modules available from CPAN (like Class::MethodmakerK, which simplifies declaring classes) and discusses performance issues and the tradeoff between programming convenience and speed often faced by today's Perl developer. Advanced chapters cover a number of techniques for adding persistence and invoking methods using multiple dispatching.
Filled with syntactic tips and tricks, Object Oriented Perl is a sure bet for any programmer who wants to learn how to use Perl objects effectively. --Richard Dragan
Topics covered: Perl language review, CPAN, Perl objects, 'blessing' and inheritance, polymorphism, Class::Struct and Class::Methodmaker modules, Perl ties and closures, operator overloading, encapsulation, multiple dispatch, Class::Multimethods, coarse-grained and fine-grained object persistence techniques, performance issues.
From Library Journal
Originally designed as a simple scripting language, Perl is now a full-fledged object-oriented programming language. Conway's guide discusses for experienced Perl programmers object-oriented design concepts and how they work in Perl. For academic and larger public library computer science collections.
Copyright 2000 Reed Business Information, Inc.
Top Customer Reviews
I don't recall what caused me to buy this book; perhaps it was the only Perl OO book. I am so glad I did, because the amount of info that the author has put into this book is amazing. Not just that, it's the *choices* he made, of what to explain. He's picked all the pieces that the other books glossed over, and examined the missing pieces, so that I now understand the"why" behind many oddities, and I now can push myself much farther forward.
Sort of like, the other books pose the questions, this book answers them.
If you only buy 2 Perl books, make this one of them. Ignore the fact that the title says OO. Yes, it does a great job of explaining how the OO features mechanically work, but the reason to buy this book is all the extra backgrounder info that's in this, it's worth twice what they're asking for. The data often has nothing to do with the OO features, he's probably remembering all the details that HE had to go run down, and he's giving us all these data pearls (pun intended) for free, along with the payment for the OO data.
Don't buy this book to learn object-oriented programming, but if you want to learn how Perl manages to add OO features, and accidentally learn how Perl adds in a great many other features, then you're in the right place.
I consider the first two chapters ("What you need to know first" and "What you need to know second") to be well written and quite useful. These chapters effectively and succinctly expressed the non-OO aspect of Perl programming. When I delved excitedly into chapter three, however, it seemed to me that Damian Conway lost his interest in teaching Perl, in lieu of underlining his own mastery of the language. Too many times I recall his overly complicated one-liners getting in the way of a clear explanation of the point he was trying to convey. I bought Damian Conway's OO Perl because I wanted to learn more about object orientation in Perl-not to view obfuscated code. A *lot* more clarity would have the made the book much more useful.
A second frustrating point about the book is how Damian writes a given class, and then fails to provide even a simple example of how to use said class. As a programmer reading the book, I found it quite annoying that I had to so often write my own "class calling" scripts. Of the many classes contained in the contents of the book, I recall only one or two working examples of how to use said classes! This baffled me throughout the book. I kept wondering, "Are examples of how to use these classes available on a website or something?" Even as I write this review now, I'm shaking my head at the lack of examples provided in the book.
In my opinion, the most appropriate title for Damian Conway's book is "Obfuscated Object Oriented Perl.Read more ›
But you can't figure out the point of some of those perl features. Blind hashes? What are they for? And that 'bless' instruction? And typeglobs- huh? Maybe you're puzzled by that odd syntax some of the CPAN modules use- $class->export($var)? What's that all about?
Relax. You've just stumbled into the world of object-oriented perl programming. And it's not as hard as you may think. Conway does a wonderful job of explaining how OOP works. His examples are perfectly transparant, and perfectly obvious. And he shows how OOP construction can be summed up neatly in three simple rules.
There aren't a lot of prerequisites needed to make good use of this book. If you've got a basic familiarity with perl, and some basic experiece with programming, you're ready to dive in. Conway even gives you a review of the necessary perl essentials you'll need in chapters 2 and 3.
A first-rate book, and one destined to be a perl classic.
The book is a well paced introduction to OO, illustrating and implementing the core concepts of OO in the context of Perl. While the earliest chapters serve as building blocks to those that follow, the later chapters need not be read front to back, but rather as the topic appeals to the reader.
Topics covered include: inheritance, polymorphism, ties, operator overloading, encapsulation, genericity, multiple dispatch, and persistent objects. Each topic is introduced along with code which highlights how each technique helps to solve common real world problems. As various tips, tricks, and pitfalls are covered, the reader will often find themselves revisiting and evolving improved solutions to familiar problems.
A lot of languages implement a particular flavor of OO. And indeed, OOP shows a variety of the techniques and flavors of OO and how they may be implemented in Perl. -Explaining when and where each may best be used, and trade-offs involved. As a result, the reader comes away from the book with a greater understanding of OO, and not just a single style embraced by a particular language.
Conway and Schwartz are well-known and respected throughout the Perl community. Their writing is clever, humorous, and while information dense... surprisingly easy to follow. There is a sense of grace and continuity to their writing which made this book a real pleasure to read.
Most recent customer reviews
The author has a very methodical way of introducing concepts and overall has done a very good job. Read more
This is a good book because it shows some ways to make using the abomination known as Perl a slightly less infuriating experience. Read morePublished on April 22 2004
If you've done the Learning Perl, Programming Perl and maybe the Perl Cookbook books, and still want to know more about OO Perl, this book should make you very well rounded.Published on May 10 2003 by Tim Greer
In short, this book is a must-have if you are a serious Perl programmer (or thinking of becoming one). Read morePublished on Jan. 17 2003 by Alex Green
This book gives a very excellent all-around perspective on object-oriented programming. The examples are a bit limited in scope, but this is made up for by showing the evolution... Read morePublished on May 21 2002 by Timothy D. Shoppa
All of the other reviews for this book pretty much get it right: This book is a must have for any moderately serious Perl programmer who needs to work with or develop object... Read morePublished on May 7 2002 by M. Riffle
I pick up this book to learn Perl out of necessity and to see what Perl has to offer in terms of OOP. Read morePublished on May 1 2002 by B. K. Lau
If you work with the Perl language and you want to explore the facets of Object-Oriented programming in Perl, then this is the book that you must have. Read morePublished on April 9 2002 by Thomas Stanley
Look for similar items by category
- Books > Computers & Technology > Programming > Languages & Tools
- Books > Computers & Technology > Programming > Software Design, Testing & Engineering > Object-Oriented Design
- Books > Computers & Technology > Software
- Books > Textbooks > Computer Science & Information Systems > Object-Oriented Software Design
- Books > Textbooks > Computer Science & Information Systems > Programming Languages