Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Optimizing non-alphanumeric method callsby trizen (Hermit) |
on Sep 27, 2015 at 18:19 UTC ( [id://1143159]=perlquestion: print w/replies, xml ) | Need Help?? |
trizen has asked for the wisdom of the Perl Monks concerning the following question: Hello dear Perl Monks,
(I used "method" for the method name just for illustration, but consider that "method" can have any possible name) Output:
(If you are wondering where do I need this; well, it's part of a toy-compiler which generates Perl code from a much higher language, in which any operation is translated into a method call) My question now is, how can I make the Perl interpreter to optimize non-alphanumeric method calls, in the same way as it optimizes direct alphanumeric ones?
Back to
Seekers of Perl Wisdom
|
|