I'm having trouble reading STDIN.

This works:

$a = readline STDIN;
print $a; # prints out whatever was inputed

But the does not work:

use strict;
$a = readline <STDIN>; # forced to use <STDIN>
print $a; # prints nothing

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to