NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Changing Method Lookup (Score:1)
You can fake multidispatch in Perl 5 right now by writing a little wrapper in Perl that checks the arguments and redispatches to the right multi-variant.
This just pushes that check to the C level by redefining the method lookup opcode. The code doesn't actually redispatch, but it demonstrates that it is possible to override opcodes.