Thanks to those who helped point me in the right direction.

I looked at the man page, 
http://www.perldoc.com/perl5.6/pod/func/readline.html,
and found two forms: 

readline(*STDIN) and readline<STDIN>;
the form which I used (readline STDIN) 
was not mentioned.

The second form uses an inline form or readline,
according to the docs; on the Solaris version,
it appears to be broken. I switched to readling(*STDIN),
and it works as expected.

Thanks!

 <<readline fails on Sun machines?>> 


THe following code works on my AIX machines, 
but not on Solaris machines. All are running Perl 5.005_03.

What's the story?

Thanks!

#!/usr/local/bin/perl -w

print "account = " ;
$account = readline STDIN ;
chomp($account);
print "account: $account\n";



Reply via email to