Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • 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.