Subject: | Bug: Use of uninitialized value $newlines |
Date: | Tue, 13 Apr 2010 21:15:03 +0200 |
To: | bug-IO-Prompt [...] rt.cpan.org |
From: | ipaetzold [...] gmx.de |
Hi there,
I tried an example from the O'Reilly book "Perl best practices".
Here's the code:
while( 1 )
{
my $Choice = prompt 'Press key [a-e]: ', -onechar;
print "Pressed: $Choice\n";
}
The output is with an unexpected error message:
Press key [a-e]: aUse of uninitialized value $newlines in print at
/usr/local/share/perl/5.10.0/IO/Prompt.pm line 465.
Pressed: a
Perl version:
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
OS version:
Linux delta 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010
i686 GNU/Linux
Thanks for notice. Ingmar
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01