http://qs321.pair.com?node_id=469746


in reply to Re: "or die" versus "|| die"
in thread "or die" versus "|| die"

Which error? The numeric comparison operator has a higher precedence. If the record size that perl read is the expected record size, the LHS evaluates to one and the short circuit terminates.

The better rule of thumb is to use or when you want everything else to happen first.

If you know about problems in the perlfaq, however, you can send them to perlfaq-workers @ perl.org and we'll fix them up.

--
brian d foy <brian@stonehenge.com>