Methods called on instances of your class that aren't found in your package will be found in parent classes (Perl examines the contents of your @ISA). If you provide your own, it won't go loooking up the inheritance chain.package MyParser; use HTML::Parser; @MyParser::ISA = qw( HTML::Parser ); sub text { # do what you will here }
In reply to Re: Overriding via a subclass?
by chromatic
in thread Overriding via a subclass?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |