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


in reply to or or

Or that's what we call them in mathematics. If you use parentheses around the arguments of a function, I think this would remove any concern over "or" vs. "||".
Like this:
open(FH, "filename.txt") || die "$!"; # OR open(FH, "filename.txt") or die "$!";
Functionality should be identical in the two cases above, no? Of course, this is only for calling of functions or something like that. It doesn't work the same with other above-mentioned examples such as
$a = $b || $c;
Which is an entirely different sort of thing.