Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Why can't I call SUPER from user code?by hv (Prior) |
on Mar 31, 2006 at 00:06 UTC ( [id://540328]=note: print w/replies, xml ) | Need Help?? |
Because there isn't just one SUPER: perl needs to know what class you want the superclass of. If you tell it, perl will be happy:
This is needed because you may have another class: .. which means that BAR::bang() may be called by objects that don't have ref($self) eq 'BAR'. Hugo
In Section
Seekers of Perl Wisdom
|
|