There's more than one way to do things | |
PerlMonks |
Re: debug statementsby Fletch (Bishop) |
on Oct 03, 2006 at 18:00 UTC ( [id://576140]=note: print w/replies, xml ) | Need Help?? |
If you use a constant sub (declared with the constant pragma) then the code should get optimized away at compile time.
There's also an evil live comments module (specially formatted text in comments is printed as debugging output) that someone wrote but the name of which escapes me at the moment . . . Update: Smart::Comments, that was it. Of course that gets the usual "source filters are teh debil" warnings.
In Section
Seekers of Perl Wisdom
|
|