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