in reply to Conditionally executing debugging code
i
I try this code example on my computer with Perl 5.6.1
and i have one error :-)
Too many arguments for Debug::doit at ./test.pl line 9, near "};"
Execution of ./test.pl aborted due to compilation errors.
some consultation with my friend gildir. Problem is simple.
use Debug(1);
print "Start\n";
DEBUG { print "debug me"; }
# mising ';' at end of line
# correct is
DEBUG { print "debug me"; };
Mamut