in reply to Re: Pattern for a shell-style call + error response
in thread Pattern for a shell-style call + error response
PBP numbers 63-65
Not having PBP, I don't know what 63-65 might be, but I do know that your way violates perlstyle:
is better thanopen FOO, $foo or die "Can't open $foo: $!";because the second way hides the main point of the statement in a modifier. On the other handdie "Can't open $foo: $!" unless open FOO, $foo;is better thanprint "Starting analysis\n" if $verbose;because the main point isn't whether the user typed -v or not.$verbose and print "Starting analysis\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pattern for a shell-style call + error response
by Fletch (Bishop) on May 04, 2007 at 20:51 UTC |