in reply to "or die" versus "|| die"
Rule of thumb: use || when you are actually using the result of the operation, otherwise use or.read(FH, $record, $RECSIZE) == $RECSIZE || die "can't read record $r +ecno: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "or die" versus "|| die"
by brian_d_foy (Abbot) on Jun 24, 2005 at 15:59 UTC | |
by halley (Prior) on Jun 24, 2005 at 16:33 UTC | |
by brian_d_foy (Abbot) on Jun 24, 2005 at 16:39 UTC | |
by ysth (Canon) on Jun 24, 2005 at 19:11 UTC |