in reply to Input problem with Enter key...
in thread Input problem with Enter key...
I don't know if you are using some kind of development environment to run the code or not? Save this .pl file verbatim and run it from the Windows XP command line - not from within any development environment.use warnings; use strict; print "type something: "; my $input = <STDIN>; print "you typed", $input; # of course: # print "you typed $input"; # would be the same
Before posting, I tested this on Win XP to avoid a typo problem. I am using an Active State build, but that shouldn't matter in the slightest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Input problem with Enter key...
by PriNet (Monk) on Nov 07, 2016 at 02:45 UTC | |
by PriNet (Monk) on Nov 07, 2016 at 03:14 UTC |