in reply to Re: Kindly let me know what exactly && does in Perl
in thread Kindly let me know what exactly && does in Perl

If the whole && expression is true can only be known with the last true value, ...

That wording leaves open the possibility that there might be more false values after the "last true value"... perhaps better:

The whole && expression is only true if all its operands are true, in that case the last true value is returned; otherwise the first false value is returned.

Replies are listed 'Best First'.
Re^3: Kindly let me know what exactly && does in Perl
by LanX (Saint) on Sep 07, 2014 at 17:27 UTC
    True!

    or just:

    The first false value (if existing) is returned, otherwise the last one (which is hence true).

    Hope I can transport the idea, feel free to correct my English! :)

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)