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: $!";
In reply to Re: "or die" versus "|| die"
by ysth
in thread "or die" versus "|| die"
by ghenry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |