3 ms·
> I remember giving up on Perl when I discovered that || and or were both "or" operators but had different precedences. This one is useful. Remember that Perl
by marcosdumay 10y ago
> I remember giving up on Perl when I discovered that || and or were both "or" operators but had different precedences.
This one is useful. Remember that Perl was created for being a more powerful kind of shell.
Those operators have their precedence set so that you'll use || as a logical operation inside a command, and "or" for control flow between commands. The same is true for && and "and".