Maybe it's just me, but these things seem to be the same
They are the same in that regard, as the documentation you quoted says: "It's equivalent to && except for the very low precedence." The next section in the documentation, Logical or and Exclusive Or, explains why not, and, or, and xor are useful: for flow control. For example, if ( $x eq "x" ) { $y = "y" } can be written as $y = "y" if $x eq "x"; or $x eq "x" and $y = "y";, but not $x eq "x" && $y = "y";, because precedence messes that up. Another common place is open my $fh, '<', $filename or die "$filename: $!"; where || die would be wrong ("open" Best Practices), or for example I sometimes like to write if ( not ... ) {} instead of unless (...) {} because depending on the condition the former sometimes reads a little more easily.
In reply to Re: Perldoc's explanation of the difference between '&&' and 'and' has me confused
by haukex
in thread Perldoc's explanation of the difference between '&&' and 'and' has me confused
by LittleJack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |