- or download this
$debug = bungee;
...
else {
$debug = bungee;
}
- or download this
if ($debug) {
# $debug is true
...
$debug = 1;
$debug = !$debug; # flip-flop
- or download this
package boolean;
...
sub new { bless [ $_[1] ? 1 : 0 ], $_[0] }
sub flip { $_[0][0] = 1 - $_[0][0] }
- or download this
use boolean;
...
print "hi\n" if $debug;
$debug->flip;
print "bye\n" if $debug;