First of all, Many Monks will probably tell you that cgi-bin Is Not Perl. Often Perl is used to write scripts that use the Common Gateway Interface (CGI), but that is mere coincidence.

For us to be of much help, you should probably start by determining whether perl exists on the hypermart web server machine. Do you know what operating system is on there? Do they give you shell access or only ftp access? Your best bet is probably to ask the Hypermart people how to use their cgi-bin.

If it's an NT-hosted web server, it might not have Perl at all. If it's on a form of UNIX, it probably does. Type which perl to see where perl lives. From there, the basic procedure (this is a very generic answer, but it was a pretty general question...) is to write a perl script which prints out HTTP headers followed by HTML code. In practice there are Many ways to accomplish this, and looking in the Categorized Questions and Answers section about CGI programming will give you a lot of clues.

If you have a more specific question I'd be glad to attempt a more specific answer.

Alan

Update: Okay, since you stated they give you no help on using cgi-bin, maybe asking them isn't the best way to figure out how to use it...


In reply to RE: getting a cgi script working by ferrency
in thread getting a cgi script working by mhorvat42

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.