When you say:

I was successful with getting the following to appear in a browser;

Do you mean that the browser showed the entire script exactly as you posted it (including all the repetitions of "print" and all the quotes and dollar signs and "ENV{REMOTE_ADDR}")? Or do you mean that the browser actually showed "Hello World" as the title, and as a heading, and you saw an actual IP address (presumably 127.0.0.1)?

If the former, it means you don't yet have your IIS web server configured to actually execute perl cgi scripts. I don't really know about configuring IIS (I suppose you have to navigate a bunch of dialog windows and menus and crap like that), but in general, e.g. using Apache, there's a config file that you edit, and somewhere in there is a section about designating the directory where cgi scripts will be kept. (Don't they have Apache servers for windows?)

You want to make sure that only a specific directory (or small number of specific directories), which you manage and protect very carefully, are designated for storing executable cgi scripts. Then you put your cgi script in that directory, and type the url that corresponds to this path and script file into the browser, so when the server gets that url request, it runs the script, and sends the script output (the html data) back to the browser.

My apologies if you know all this already -- it wasn't clear from the OP how far along (or behind) you are.


In reply to Re: Novice trying to find my way by graff
in thread Novice trying to find my way by mortalhero

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.