- or download this
use constant ENABLE_DEBUG => 0;
sub debug { print $_[0]; }
debug 'test' if ENABLE_DEBUG;
- or download this
use constant ('ENABLE_DEBUG', 0);
sub debug {
print $_[0];
}
'???';
- or download this
use constant ENABLE_DEBUG => 0;
sub debug { print $_[0] if ENABLE_DEBUG(); }
debug 'test';
- or download this
use constant ('ENABLE_DEBUG', 0);
sub debug {
0;
}
debug 'test';