Help for this page

Select Code to Download


  1. or download this
    debug "this..." if LVL1;
    ...
    debug "that .." if LVL3;
    
  2. or download this
    sub debug {
      print "$_\n" for @_;
    }
    
  3. or download this
    BEGIN {
     ... read the levels that should be ON to %debug 
    ...
      eval "sub LVL$_ () {$debug{$_}};";
     }
    }