NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
|| vs. or (Score:2)
||has a higher precedence, whileorhas a very low precedence. So choose just based on what kind of precedence you want. For example:evaluates the whole RHS as an expression for
print, whileevaluates
print "do"and willdie()only whenprintfails for example when printing to a closed filehandle, of to a full disk.I just hope I seem to make sense.
Re:|| vs. or (Score:1)
Actually you did. Thank you very much.
or... (Score:2)
Of those two, always the first, as the OR operator no longer exists (it was made lower case).