Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Why is a hash the default "object" in oo perl?by water (Deacon) |
on Jul 18, 2004 at 19:29 UTC ( [id://375415]=note: print w/replies, xml ) | Need Help?? |
I've been happy using Class::MethodMaker, and using the easily defined accessors / setters for all access into the object, both from outside, from inside (the class itself), and from any subclasses. Then nobody steps on anyone else. And given all the convenience functions C:MM offers, I'm not tempted to cheat and push stuff into hash directly.
You won't find the eight characters
The only downside I can see to this is speed, but my apps are all disk-IO-bound anyway, so the extra wrapper calls don't matter a whit. Your mileage may vary-- water, water, everywhere
In Section
Meditations
|
|