Deparsing (see O and B::Deparse) is a useful way to look at issues of precedence:
Win8 Strawberry 5.8.9.5 (32) Mon 07/05/2021 1:12:59 C:\@Work\Perl\monks >perl -Mstrict -Mwarnings -l -MO=Deparse,-p my ($x, $y, $z) = qw(eks wye zee); print $x && $y && $z; print $x && $y and $z; # $z is useless ^Z Useless use of private variable in void context at - line 4. BEGIN { $/ = "\n"; $\ = "\n"; } use warnings; use strict 'refs'; (my($x, $y, $z) = ('eks', 'wye', 'zee')); print((($x && $y) && $z)); (print(($x && $y)) and $z); - syntax OK
Give a man a fish: <%-{-{-{-<
In reply to Re: Perldoc's explanation of the difference between '&&' and 'and' has me confused
by AnomalousMonk
in thread Perldoc's explanation of the difference between '&&' and 'and' has me confused
by LittleJack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |