Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: classic OO Perl: naming instance variablesby j3 (Friar) |
on Apr 11, 2007 at 16:49 UTC ( [id://609424]=note: print w/replies, xml ) | Need Help?? |
In cases where I need to re-bless a hashref from a parent class constructor, {snip} Just curious, why would you ever need to re-bless a hashref? I've always figured you bless once, using the 2-arg form, in your base class. Inherited classes use $class->SUPER::new(...) to reach back and have the parent do it.
In Section
Seekers of Perl Wisdom
|
|