So you're using a script in context it was not made for. The fix is to run it in the right context, which means through a web server as CGI. (Using the CGI is module is only a symptom for a CGI environment, and not necessarily related to it).
In reply to Re^5: $ENV{'REQUEST_METHOD'} undefined?
by moritz
in thread $ENV{'REQUEST_METHOD'} undefined?
by Lamont85
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |