Think about Loose Coupling | |
PerlMonks |
Re^4: Why is a hash the default "object" in oo perl?by diotalevi (Canon) |
on Jul 19, 2004 at 17:01 UTC ( [id://375615]=note: print w/replies, xml ) | Need Help?? |
I've used my subclass package name as a key to a child hash. So while my parent may say $self->{ 'key' } internally, I say $self->{ +__PACKAGE__ }{ 'key' } which works as long as my parent doesn't name their hash keys things like Foo::Bar.
In Section
Meditations
|
|