On Mon, 29 Mar 2010 17:27:44 +0300 Shlomi Fish <shlo...@iglu.org.il> wrote:
> Of course in this particular case, this is equivalent to: > > $bar = ($foo != 1); > > Unless you care about $bar specifically being 0 instead of the also > false values of the empty-string or undef(). In that case, do this: $bar = ( $foo != 1 ) || 0; -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. Eliminate software piracy: use only FLOSS. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/