This is a REALLY stupid question, but how come this does not just accept the keyboard input (with <enter> key) then immediately print it out, then quit. The script doesn't do the print and i can't stop it without using ^c
This is not on a webpage, it's using the perl interpreter directly; i.e. "perl input.pl" at the command prompt
print "type something: "; my($input) = <STDIN>; print "you typed ", $input;
In reply to Input problem with Enter key... by PriNet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |