in reply to debug statements
If you use a constant sub (declared with the constant pragma) then the code should get optimized away at compile time.
use constant DEBUG => 0; ## ... print "DEBUG: JINKIES!\n" if DEBUG();
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: debug statements
by djp (Hermit) on Oct 04, 2006 at 03:43 UTC | |
|
Re^2: debug statements
by monarch (Priest) on Oct 04, 2006 at 15:29 UTC | |
by djp (Hermit) on Oct 05, 2006 at 23:45 UTC |