Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: replacing literals with constants (empty prototype needed)by LanX (Saint) |
on May 14, 2022 at 09:25 UTC ( [id://11143896]=note: print w/replies, xml ) | Need Help?? |
First of all, this ...
For constant folding (optimization at compile time) to happen, you need a a prototype of () , to make sure the result doesn't depend on input.
The following demos with B::Deparse will demonstrate what is happening
Cheers Rolf
updates
In Section
Seekers of Perl Wisdom
|
|