Help for this page

Select Code to Download


  1. or download this
    $debug = 1;
    
  2. or download this
    sub Debug {
        if ( $debug ) {
    ...
            print $msg, "\n";
        }
    }
    
  3. or download this
    Debug( "Entering calculation phase." );
    Debug( "Pre-calculation value of \$x: $x" );
    ...
    Debug( "Leaving calculation phase." );
    Debug( "Post-calculation value of \$x: $x" );