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:
Like this:
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 asopen(FH, "filename.txt") || die "$!"; # OR open(FH, "filename.txt") or die "$!";
Which is an entirely different sort of thing.$a = $b || $c;
In Section
Seekers of Perl Wisdom