in reply to Conditional style (if, &&) query
Works for me because I see the "$debug" and mentally disregard that line from the regular functionality of the code.$debug && print "Some debugging output.\n";
...doesn't stand out as much as debugging because I tend to scan code down the left side.print "Some debugging output.\n" if $debug;
...that way just eats up way too much room when there's a lot of debugging output.if ($debug) { print "Some debugging output.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Conditional style (if, &&) query
by Hofmator (Curate) on Oct 17, 2001 at 14:47 UTC |