[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] ?:



Lately (ie since I discovered it) I've been having problems with the ?: operator. That being something like...

$a == 1 ? $b = 1 : $b = 0 ;

... will *always* set $b to zero. Irregardless of whether the first part succeds of fails. Is there something I'm missing about the operator? Note I've been coding on ActivePerl (windoze98) not MacPerl (because I'm on the other cost from my mac, and there are only pcs here).

le meas,
--Nick
# ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org