in reply to Re: STDIN refuses input
in thread STDIN refuses input
Well, I said I am a beginner, and it certainly shows as I do not understand many of the comments. Let me try again.
I copied three sample Perl scripts from the Web, because I wanted to know how to install them on my host's system. Two of three scripts were put into my host's CGI-BIN and worked perfectly. The other script was also installed and works to a point.
It is a simple script and I expected it would ask for input through <STDIN> and save the input in a $variable. The script would then immediately print "Hello, $variable." I am sure that <STDIN> does not wait for input and prints the incomplete hello message without the $variable.
From what I understand, I could achieve this test with only my local computer. That is not what I need. I got the installation correct, I think, but I am missing something. Perhaps the script I copied is meant for a local computer.
Ultimately, I have some pre-written scripts that I want to use, and I need to know how to modify them for my site, and install them.
What will it take to make my simple script work correctly? As soon as it works, I will go on to learn something more difficult.
Thanks to all.
lcole
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: STDIN refuses input
by taint (Chaplain) on Dec 16, 2013 at 21:37 UTC |