Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Ternary if versus normal if question

by lidden (Curate)
on Nov 19, 2005 at 15:15 UTC ( [id://510101] : note . print w/replies, xml ) Need Help??


in reply to Re^3: Ternary if versus normal if question
in thread Ternary if versus normal if question

$ perl -wle '$a=0; $a ^= 1; print $a' 1 $ perl -wle '$a=1; $a ^= 1; print $a' 0

Replies are listed 'Best First'.
Re^5: Ternary if versus normal if question
by Moron (Curate) on Nov 21, 2005 at 12:10 UTC
    Hmm looks like you are right - I tested exactly this, with a slightly different script and got a 1 for both cases but the above test looks right and does suggest it works after all. If the problem is an inaccesible NFS mountpoint, how about dismounting it just from your local system during the installation?

    -M

    Free your mind