At 01:42 PM 6/11/01 -0400, McIntyre, Terry wrote:
>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";
Confirmed with 5.005_03 on Solaris 2.5.1. I'd say you've got a bug there,
because it does not happen with perl 5.6.1 on the same platform, nor does
it happen with the <> operator (which is supposed to be the same).
Therefore, either upgrade, or use <STDIN> instead of readline STDIN.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com