-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John W. Krahn wrote:
> Yes, Perl has five "false" values: undef, (), 0, '' and '0', and two of those
> are valid input from the readline operator.
>
>
>
> John
Should running the above from the command line make a difference? I ran
them both entering 0 each time and I got 0 back. This is what it looks
like:
[EMAIL PROTECTED]:~> perl -e 'if ($_ = <STDIN>) { print; }'
0 <---input value
0 <---returned value
[EMAIL PROTECTED]:~> perl -e 'if (defined($_ = <STDIN>)) { print; }'
0 <---input value
0 <---returned value
Mathew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFE4idr7cEqtYW7kARAieHAKDDfDCIxEJvs9Wf6fQLVx/rNr3RJACg2f3E
yF4gQ4p896lgvsSHqvLDWw0=
=1ZHb
-----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>