Do you know where your variables are? | |
PerlMonks |
RE: Easy, elemental, but cool debug trick.by KM (Priest) |
on May 24, 2000 at 21:23 UTC ( [id://14607]=note: print w/replies, xml ) | Need Help?? |
I usually do what you showed above. Sometimes I do: sub DEBUG () { 1 } If I have many statements in there doing ... if $DEBUG. I also use perl -c, the debugger, and whenever I am doing CGI I like to use CGI::Carp qw(fatalsToBrowser). I also use -T, but that isn't really a debugging thing.
Cheers,
In Section
Meditations
|
|