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


In reply to Re^2: STDIN refuses input by lcole
in thread STDIN refuses input by lcole

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.