|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: "or die" versus "|| die"by ysth (Canon) |
| on Jun 24, 2005 at 15:33 UTC ( #469742=note: print w/ replies, xml ) | Need Help?? |
|
It's too easy to make precedence mistakes if you use the || variety for this kind of flow control. Witness later in that same faq: http://perldoc.perl.org/perlfaq5.html#How-do-I-randomly-update-a-binary-file%3f the error in the line: Rule of thumb: use || when you are actually using the result of the operation, otherwise use or.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||