Help for this page

Select Code to Download


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