Just another Perl shrine | |
PerlMonks |
perl compiler optimizer curiosityby smile4me (Beadle) |
on Mar 12, 2022 at 02:30 UTC ( [id://11142021]=perlquestion: print w/replies, xml ) | Need Help?? |
smile4me has asked for the wisdom of the Perl Monks concerning the following question:
So I use a $ENV{DEBUG_LEVEL} flag to turn on/off debugging in my project similar to this:
After a while, the debug() statements become sprinkled all over the place. For me, it is helpful. But I am wondering if there is a cost to all these calls. I tried testing this theory with: DEBUG_LEVEL=3 perl -MO=Concise ./debug_onoff.pl DEBUG_LEVEL=2 perl -MO=Concise ./debug_onoff.pl DEBUG_LEVEL=0 perl -MO=Concise ./debug_onoff.pl but the output is the same. See for related topic. So the questions is:
Thanks for your insight.
Back to
Seekers of Perl Wisdom
|
|