-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dr.Ruud wrote:
> "flotsan" schreef:
> 
>> it is told the following two statements are
>> different:
>>
>> 1) if ($_ = <STDIN>) { print; }  # suboptimal: doesn't test defined
>> 2) if (defined($_ = <STDIN>)) { print; }   # best
>>
>> But as I see it, these two do the same thing
> 
>   perl -le '
>     print defined($_) ? "\"$_\"" : "<undefined>"
>         , "\tis "
>         , $_          ? "true"   : "false"
>       for undef, "", 0, "0", 0E0, "0E0", 0.0, "0.0", 1
>   '
> 

That's over my head...

- --
If we don't protect freedom of speech, how will we know who the assholes
are?
http://theillien.blogspot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFE4nOr7cEqtYW7kARAqpxAKCWzyJUToauOalmwB8E8vUSGaA33gCeJYzi
MH8IN6TEQuIg+NffR6f8QtQ=
=FKfL
-----END PGP SIGNATURE-----

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to