lanx@nc10-ubuntu:~$ perl -MO=Deparse -e ' print if $a ' print $_ if $a; -e syntax OK lanx@nc10-ubuntu:~$ perl -MO=Deparse,-p -e ' print if $a ' ($a and print($_)); -e syntax OK
This and short-circuiting should explain the returned values.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: return value of "if" (documentation?)
by LanX
in thread return value of "if" (documentation?)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |