- or download this
use constant DEBUG => 0;
- or download this
use strict;
use warnings;
...
print "Hello World\n";
print "This is a debug Statement\n" if DEBUG;
print "Goodbye Cruel Word\n";
- or download this
use constant ('DEBUG', 0);
use warnings;
...
print "Hello World\n";
'???';
print "Goodbye Cruel Word\n";
- or download this
use strict;
use warnings;
...
noconstant => sub { my $a = 10 * $b; },
};
- or download this
Rate constant noconstant
constant 1498536/s -- -17%
noconstant 1796946/s 20% --