in reply to Re^3: Conditional Operator Confusion
in thread Conditional Operator Confusion
Not really... I'm sure I'm being really dumb here, but I still don't understand, in the following example, why $x gets set to "FALSE"... just very, very confused...
1==1?$x='TRUE':$y='FALSE'; print "x=$x\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Conditional Operator Confusion
by ikegami (Patriarch) on Nov 30, 2006 at 17:12 UTC | |
by Melly (Chaplain) on Nov 30, 2006 at 17:25 UTC |