in reply to Re: A C-like brain in a Perl-like world
in thread A C-like brain in a Perl-like world
In perl everything is true except for:
0 (including the string equvalents "0" "0.0" etc which all evaluate to zero)
Sorry, tachyon, but that's not quite right. "0.0" is not false in perl:
% perl -le 'print "" ? "True" : "False"' False % perl -le 'print "0" ? "True" : "False"' False % perl -le 'print "0.0" ? "True" : "False"' True
Now with new grammatical goodness! (Thanks, blakem. ;-)
His Royal Cheeziness
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: A C-like brain in a Perl-like world
by ton (Friar) on Sep 27, 2001 at 05:31 UTC | |
by $code or die (Deacon) on Sep 27, 2001 at 05:52 UTC | |
by tilly (Archbishop) on Sep 27, 2001 at 07:24 UTC | |
|
Re: Re: Re: A C-like brain in a Perl-like world
by tachyon (Chancellor) on Sep 27, 2001 at 15:16 UTC |