It returns the expression on the right side of "&&" if and only if both expressions are true.It returns the expression on the right side if the expression on the left side is true.
$ perl -E 'say "Yes" if "Foo" && 0 eq 0' # says "Yes" $ perl -E 'say "Yes" if "Foo" && "" eq ""' # says "Yes" $ perl -E 'say "Yes" if "Foo" && 0 eq ""' # Nothing
In reply to Re^3: Hash Printing reveals Hash Memory Location
by lidden
in thread Hash Printing reveals Hash Memory Location
by perlStuck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |