Console input sends whole line to STDIN
Brought to you by:
jguentherodt
Executing this script from PerlIDE demonstrates problem:
$| = 1;
print "Enter something now:";
my $line = <STDIN>;
print "I got: $line\n";
The whole console line is sent to STDIN -- not just the stuff the user types. It is also possible to delete the "Enter something now:" request line although this doesnt matter for testing purposes.
Logged In: NO
A workaround for this problem could be to add the '\n' to
the first print command. It should look like
print "Enter something now:\n";
This works fine I think
Logged In: NO
unfortunately, it dosen't work.
Logged In: NO
Yes, took a while to understood what was wrong in my code
until I figured out it was bug in PerlIde. Could someone fix
that?