Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Hints Towards Writing a Module with New Operatorsby moritz (Cardinal) |
on Dec 19, 2009 at 22:48 UTC ( [id://813563]=note: print w/replies, xml ) | Need Help?? |
Take a look at Devel::Declare, if I remember correctly it allows you to install callbacks in the parser for things that are otherwise syntax errors.
In Perl 6 you could just declare the operators:
When you run this with Rakudo, it prints
In Section
Seekers of Perl Wisdom
|
|