Object Oriented Perl: A Comprehensive Guide to Concepts and Programming Techniques

by Manning Publications

$42.95
buy from amazon.com
Average Rating: * * * * half star
Sales Rank:290242 (lower is better)
Price Used:$12.88
Shipping:Free Shipping on most orders over $25*
Availability:Usually ships in 24 hours
Label:Manning Publications
Pages:490
Binding:Paperback
Publication Date:2000-01-01
Published By:Manning Publications
ASIN:1884777791
Category:Book

Authors

Editorial Reviews and Product Descriptions

Product Description

Techniques and tricks to master basic and advanced OO Perl for programmers who already have basic to intermediate skills in procedural Perl.
Amazon.com

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.

Customer Reviews

More than objects, but a wee bit long in the tooth now - Reviewed on 2007-07-15
* * * *
4 customers found this review helpful.

This is a fine book, but the passage of time has rendered some parts of it less relevant.

As an introduction to object oriented programming, and how to do it in Perl, this is one of the best sources you could learn from. Neither The Alpaca nor The Camel do such a good job.

And it's not just objects that are well covered. You'll also find lucid explanations of closures, type globs, the symbol table and tied variables, all of which can be considered advanced Perl.

Elsewhere, though, the material has not aged so well, superseded by the author's own Perl Best Practices, where some of the recommendations have been reversed, or improved upon ('inside out' classes, for example, as implemented in Class::Std, is a superior development of the flyweight approach mentioned in this book). Some of the material, which concentrates on CPAN modules, and the experimental pseudohashes is not so useful in the light of this - the latter are on course to be removed in Perl 5.10. The sections on building objects using references to things other than hashes (e.g. arrays, regular expressions and subroutines) is clever, but this reader was unconvinced of their utility.

There's also coverage of generics, although in Perl this is not much like generics in C# or Java, basically passing around Perl code as uninterpolated text strings and then evaling it inside a subroutine, where any lexical values are interpolated.

Finally, there are chapters on multimethods (no more elegant or manageable in Perl than other languages that support this feature, alas) and persistence.

The principles discussed remain relevant, and the book is a pleasure to read. However, if you already familiar with OOP and just want to get going as fast as possible, the relevant chapters of Intermediate Perl and Perl Best Practices might be better places to look.
Amazing style and clarity - Reviewed on 2007-02-04
* * * * *
1 customer found this review helpful.

I am a newbie to perl and I'm writing an application that involves using object-oriented perl. I have not seen any other book that explains difficult concepts with amazing clarity that even a newbie like me can understand. I wish other perl books were written as simple and clear like this one :(
An excellent catch all - Reviewed on 2006-08-19
* * * * *

I have written a number of modules for Perl over the last 5 years, and I really wish I had bought this book earlier.

It is a mixture of sound coding practices and great examples. I actually bought this after reading Perl Best Practices by the same author, and have not been disappointed.

This is a book written by someone how obviously knows Perl from the inside, and can apply this to real world issues.
The first useful documentation on Perl OOP - Reviewed on 2005-09-15
* * * * *
1 customer found this review helpful, 3 did not.

This is my favorite Perl book, alongside Advanced Perl Programming.

When I first read it, I was very upset that 3 pages in particular had not simply been inserted into the original Camel book, which I think is one of the most important yet most poorly written programming books ever.

I wish Damien Conway had written Camel and Llama.
A Must-read Advanced Perl Book, the title is misleading - Reviewed on 2005-08-17
* * * * *
3 customers found this review helpful.

I almost passed this book by, thinking it was a primer into the OO world with Perl. I'm comfortable (if slightly annoyed) writing OO Perl code. What surprised about Conways text was that the book used OO as a premise to instruct the reader on more advanced aspects of Perl; its more an Advanced Perl book than the expected Object Oriented book.

I learned more depth of Perl than I have in years. Perl is a thick and crafty language. Chapter 2, subtitled "A Perl Refresher", was worth the price of admission alone, as he deftly re-hashed Perl features he would use later in the book. The practices and features of Perl he later expanded on in the OO chapters incontinued to impress me.

If you are a Perl programmer, beginner to advanced, this is a must-read book, and a great source of coding inpiration. It made me a better programmer, in Perl and other languages.

This book is was published in 2000, and usually the half-life of most computer texts don't hold up 5 years, but this book certainly does! Also, I just noticed Conway just published "Perl Best Practices" which I am eager to tackle.
Read More Customer Reviews »
Go To Amazon Product Page

* - See Amazon Product Page for shipping and pricing details.


Book Subjects