SPUG: Last night's meeting
Tim Rosmus
trosmus at nwnexus.net
Wed Mar 17 15:48:47 CST 2004
On Wed, 17 Mar 2004, Michael R. Wolf wrote:
|# > print STDERR "random annoying debug statement\n" if $DEBUG;
|# >
|# > Just slap those 'if $DEBUG' tags on as needed. Or to save typing
|# >
|# > $DEBUG && print STDERR "random annoying debug statement\n";
|# >
|# P.S. Thanks for slipping the STDERR arg in, something I had left out
|# of my previous examples. Debug output should not pollute STDOUT.
|#
|#
Don't forget warn....
warn "random annoying debug statement\n" if $DEBUG;
>
or
>
$DEBUG && warn "random annoying debug statement\n";
--
Tim Rosmus <trosmus at nwnexus.net>
Postmaster / USENET / DNS
Northwest Nexus Inc.
More information about the spug-list
mailing list