Help for this page

Select Code to Download


  1. or download this
    # This is the custom debugger:
    { package DB;
    ...
    
    $|++;   # Turn off buffering, to make the control flow clearer
    hello();
    
  2. or download this
    $ perl d.pl
    Hello, World!
    ...
    World!
    === Leaving sub main::world
    === Leaving sub main::hello
    
  3. or download this
      BEGIN {$^P = 1}
    
  4. or download this
    BEGIN {
      return if $^P;  # If the debugger is running, leave well alone
    ...
      };
    }