in reply to Re: STDIN under MAC OS 10.4.11
in thread STDIN under MAC OS 10.4.11
Thank you.
What I've got is a file example2.pl that has this in it and nothing else
#!/usr/bin/perl print "What is your name? "; $name = <STDIN>; print "Your name is $name\n";
I also have a file example1.pl that has this in it and runs exactly as you'd expect
#!/usr/bin/perl print "Hello, there!\n";
I'm not new to Perl or to programming, but I am having to switch from MacPerl to Perl on the Mac under Unix (Darwin); although, I used to work for Sun Microsystems, so Unix isn't unfamiliar, either.
I thought I'd just learn Perl all over again from the beginning, when I ran up against the inability of the script to stop for the keystokes. What????????
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: STDIN under MAC OS 10.4.11
by graff (Chancellor) on May 26, 2008 at 17:49 UTC | |
by AliceQuint (Initiate) on May 27, 2008 at 15:40 UTC |