Operator precedent is the reason. Try ...
perl -e '$x = 4 ; exit $x > 3 ? 1 : 0' ; echo $? perl -e '$x = 5 ; exit ($x > 3) ? 1 : 0' ; echo $?
In reply to Re: exit EXPR?
by Anonymous Monk
in thread exit EXPR?
by timpoiko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |