in reply to debugging - straw poll ...

print is my favourite debugger (not that I have much use for it *cough*), although I often leave the print statements in, and condition them with a global.
my $DEBUG = 1; ... print Dumper(\%x) if $DEBUG;
---
my name's not Keith, and I'm not reasonable.

Replies are listed 'Best First'.
Re^2: debugging - straw poll ...
by Jenda (Abbot) on Aug 23, 2005 at 17:50 UTC

    Change this to

    sub DEBUG () {1} ... print Dumper(\%x) if DEBUG;
    and the prints will even be optimized away so Perl will not waste time testing the value of $DEBUG at runtime.

    Jenda
    XML sucks. Badly. SOAP on the other hand is the most powerfull vacuum pump ever invented.