>>>>> "JP" == Jeff Peng <jeffp...@netzero.net> writes:
JP> On Mon, Mar 29, 2010 at 10:02 PM, Jeff Soules <sou...@gmail.com> wrote: >> Hi all, >> EX 2: >> ($foo == 1) ? >> $bar = 0 : >> $bar = 1; >> >> These are logically equivalent, right? JP> No. ($foo == 1) is a list which always has a value of either 1 or 0 so JP> it really return a true value in both cases. that is very wrong. that is a boolean test regardless of context as == has no context variations. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/