http://qs321.pair.com?node_id=375615


in reply to Re^3: Why is a hash the default "object" in oo perl?
in thread Why is a hash the default "object" in oo perl?

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.

# A "dumping" of such a structure. $self = { bar => ..., foo => ..., 'Foo::Bar' => { bar => ..., foo => ... } }