There are two hacks in Perl Hacks that show how to do that. One uses source filters. The other uses subroutine attributes, B::Deparse, and a sneaky import() trick to obviate the need for invocant declaration.
(I hate to spoil the trick for anyone who wants to figure it out without help....)
In reply to Re: RFC: PerlPlusPlus - Better OO
by chromatic
in thread RFC: PerlPlusPlus - Better OO
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |