Keep It Simple, Stupid | |
PerlMonks |
Re^3: Possibly Stupid OOP questionby runrig (Abbot) |
on Feb 27, 2008 at 00:43 UTC ( [id://670450]=note: print w/replies, xml ) | Need Help?? |
@ISA = ... is just an assignment. It's not happening until AFTER your call to new(). So there is no inheritance until AFTER all of your packages. Perhaps putting each of the @ISA=...'s in BEGIN{...} blocks will work. (Maybe putting all of the packages in one big BEGIN {...} block will work? Update: Yes, it does seem to work).
In Section
Seekers of Perl Wisdom
|
|