From perlop...
As more readable alternatives to "&&" and "||" when used
for control flow, Perl provides "and" and "or" operators
(see below). The short-circuit behavior is identical.
The precedence of "and" and "or" is much lower, however,
so that you can safely use them after a list operator
without the need for parentheses:
unlink "alpha", "beta", "gamma"
or gripe(), next LINE;
With the C-style operators that would have been written
like this:
unlink("alpha", "beta", "gamma")
|| (gripe(), next LINE);
Using "or" for assignment is unlikely to do what you want;
see below.
_______________
DamnDirtyApe
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
--Friedrich Nietzsche