in reply to Re: A simple but good debug routine..
in thread A simple but good debug routine..
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>
|
|---|