in reply to removing debugging code at compile time ?
use constant DEBUG => do { (my $p = __PACKAGE__ ) =~ tr/a-z:/A-Z_/s; $ENV{ $p . '_DEBUG' } || 0; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how do you check if it's compiled away?
by GrandFather (Saint) on Aug 17, 2007 at 04:05 UTC | |
by Anonymous Monk on Aug 17, 2007 at 04:34 UTC | |
by bart (Canon) on Aug 17, 2007 at 06:58 UTC | |
by Anonymous Monk on Aug 17, 2007 at 07:16 UTC | |
by FunkyMonk (Bishop) on Aug 17, 2007 at 11:13 UTC |