The first decisive value is returned by || and &&.
If the whole && expression is true can only be known by the last value (which must also be true and is returned), otherwise the first false value is returned.
And vice versa for || - just swap true and false.
HTH :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Updated wording, see reply for details.
In reply to Re: Kindly let me know what exactly && does in Perl
by LanX
in thread Kindly let me know what exactly && does in Perl
by pritesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |