"Michael R. Wolf" wrote:
>
> I'd like a few volunteers to take a test that I've put
> together for an "Introduction to Perl" class that I teach.
> If you are a beginner or recent "graduate" of an intro
> course and have a few minutes, would you time yourself
> taking this test and send me the results?
>
> [snip]
>
> ======================================================================
> | truth |
> ======================================================================
>
> Any value that is not false is true. What 3 values indicate
> false?
Are you sure there are only three? :-)
$ perl -le'
print qq(undef is FALSE) unless undef;
print qq("" is FALSE) unless "";
print qq("0" is FALSE) unless "0";
print qq(0 is FALSE) unless 0;
print qq(0e0 is FALSE) unless 0e0;
'
undef is FALSE
"" is FALSE
"0" is FALSE
0 is FALSE
0e0 is FALSE
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]