I supose I should back up a bit. This script is invoked by the default page of the site which is as follows. It explicitly sets REQUEST_TYPE to POST.

<html> <head> <title>Redirecting...</title> </head> <body onload="document.forms['main_loop'].submit();"> <form action="/cgi-bin/index.pl" method="post" name="main_loop"> </form> </body> </html>

What do you mean by "run as CGI?"

I understand the benifits of using CGI, but considering the amount of time I have put into this and lack of time I have to complete it, and since I imagine it would take quite a long time to convert the 6000+ lines of code in this script to use CGI, I would like to continue without it. I have plans for a second version of this script and intend to study up and use CGI, but for the time being I need a working version ASAP.

Thank you again for the help...much appreciated. :)


In reply to Re^6: $ENV{'REQUEST_METHOD'} undefined? by Lamont85
in thread $ENV{'REQUEST_METHOD'} undefined? by Lamont85

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.