AliceQuint has asked for the wisdom of the Perl Monks concerning the following question:
I can't get keyboard input into the variable.
The code is the rather simple
print "What is your name? "; $name = <STDIN>; print "Your name is $name\n";
The script doesn't wait for the keyboard. Any fix for this one, or is the Mac OS completely hopeless?
Thank you, and blessings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: STDIN under MAC OS 10.4.11
by Your Mother (Archbishop) on May 24, 2008 at 21:08 UTC | |
|
Re: STDIN under MAC OS 10.4.11
by graff (Chancellor) on May 25, 2008 at 01:13 UTC | |
by AliceQuint (Initiate) on May 25, 2008 at 14:39 UTC | |
by graff (Chancellor) on May 26, 2008 at 17:49 UTC | |
by AliceQuint (Initiate) on May 27, 2008 at 15:40 UTC | |
|
Re: STDIN under MAC OS 10.4.11
by moritz (Cardinal) on May 24, 2008 at 21:04 UTC | |
|
Re: STDIN under MAC OS 10.4.11
by dragonchild (Archbishop) on May 24, 2008 at 21:15 UTC | |
|
Re: STDIN under MAC OS 10.4.11
by Anonymous Monk on Jul 31, 2008 at 03:36 UTC |