in reply to Re: classic OO Perl: naming instance variables
in thread classic OO Perl: naming instance variables
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: classic OO Perl: naming instance variables
by friedo (Prior) on Apr 11, 2007 at 17:19 UTC |