I was looking at how to subclass Net::SMTP::Server::Client2 and found that the usual method of overriding methods doesn't work for most of the interesting ones because they are invoked internally through a lexical dispatch table.
(See the &{$_cmds{$cmd}}($self, \@args) line of get_message(). source code)
I can see several ways of doing this, but they all require modifications to the superclass. I did it this way. How would you do it?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |