Object Oriented Perl
Book Details
Availability: Usually ships in 24 hoursList Price: $42.95
Our Price: $28.35
You Save: $14.6 (34%)
Spotlight Customer Reviews
Average Customer Rating: 4.66Customer Rating: 5
Summary: Perl OOP finally made understandable
Comment: After five years of perl hacking, and lot's of wondering about OOP in perl, this book finally relieved me. Single classes were never a problem, but multiple inheritance, was. Even in linear inheritance it was not easy to see, where the object data of the superclasses would go. Things are clarified here. The book also explains OOP as such, which is a good for learning or repetition. The author seems to be extraordinarely versatile in perl hacking and shows every detail of sophisticated use of perl OOP.
Although the book is perfect, besides the typoos (, but there is an errata page on the www), one wonders, whether perl is the ideal language for object oriented programming. It becomes once more clear, that perl is the most powerful language, but also the most complicated one. If one would apply the "tie()" function regularely, then nobody could read the code any more. Despite that, the book is needed, because perl is now everywhere, and it can only be good to master it.
The chapters of the book are: 1.) What you need to know first (an object-orientation primer), 2.) What you need to know second (a Perl refresher), 3.) Getting started, 4.) Blessing arrays and scalars, 5.) Inheritance, 7.) Polymorphism, 8.) Automating class creation, 9.) Ties, 10.) Operator overloading, 11.) Encapsulation, 12.) Genericity, 13.) Multiple dispatch, 14.) Persistent objects, A.) Quick reference guide, B.) What you might know instead [about other OO languages].
Customer Rating: 5
Summary: The best text on the subject
Comment: So you've been writing perl for while, you know your way around the camel book, and you even know a lot of the CPAN library. You've written a few CGI pages, and maybe even some mod_perl module.
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.
Customer Rating: 5
Summary: Great Book. Highly recommended.
Comment: Hi:
The author has a very methodical way of introducing concepts and overall has done a very good job. What seems like easy flow as far as the reader is concerned was probably a lot of hard work on his part.
The wry humor in the book alone is worth the money.
I am still unable to take the plethora of my perl scripts and modularize them but that is not the author's fault.
Compare this book with " Learning Perl Objects, References & Modules By Randal L. Schwartz". This does a much better exposition.
thanks
Sidhaartha