Of course that won't support multiple subclasses, but it will work for the simple case of a single subclass. It's "a hack for a hack" if you will.use PadWalker 'peek_sub'; my $sub = \&Net::SMTP::Server::Client2::get_message; my $cmds = peek_sub($sub)->{'%_cmds'}; $cmds->{$_} = __PACKAGE__->can($_) || $cmds->{$_} for keys %$cmds;
_________
broquaint
In reply to Re: Subclassing a class that uses an internal dispatch table
by broquaint
in thread Subclassing a class that uses an internal dispatch table
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |