in reply to difference between OOPs in Perl and java
And for the rest of it, Perl's approach to objects is like C's approach to regular expressions: C gives you pointers to lists of numbers, and that's enough to build your own regexp engine. Similar, Perl gives you the bare minimum to build an object system but leaves all the heavy lifting of building a useful system to the programmer. So we get to make the same mistakes again, and again, and again. So we have had hashref based objects, arrayref based objects, pseudo-hashes, base, fields, locked hashes, fly-weight objects, inside out objects, spiffy, fieldhashes, moose, mouse, and other things I cannot remember. And the next couple of years, people will find other implementations because all the previous ones suck.
|
|---|