I like to set the debug flag as an environment variable, so I can turn it on or off without editing the program.
--sub debug { print STRERR @_ if $ENV{DEBUG}; }
Perl Training in the UK <http://www.iterative-software.com>
In reply to Re: Re: A simple but good debug routine..
by davorg
in thread A simple but good debug routine..
by spm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |