Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: I usually debug via...by JediWizard (Deacon) |
on Feb 16, 2005 at 15:58 UTC ( [id://431619]=note: print w/replies, xml ) | Need Help?? |
When I write CGI scripts, I like to have a &printError(); routine. Then all my debug statments call &printError("Message", $debug_level);. Based either on a config file, or and environment variable, &printError(); can decide whether or not $debug_level is high enough to send the message out to STDERR.
May the Force be with you
In Section
Past Polls
|
|