On Tue, 11 Mar 2003, jphipps wrote: > I am having problems retreiving some of the environment variables using cgi.pm > here is the code that I am trying to use, what the heck is wrong > > Code > declartions: > use CGI qw/:ALL/; > $cgi = new CGI; > > routine: > { > if (($cgi->http('request_method)) ne 'POST'){ > die " invalid script call method $cgi->http('request_method'),\n > $cgi->http('script_name') MUST be called using POST" > } > > error: > invalid script call method CGI=HASH(0x11b21c8)->http('request_method'), > CGI=HASH(0x11b21c8)->http:('script_name') MUST be called using POST at > D:\pumaspalace\cgi-bin\feedback.cgi line 87. > > > I have no idea how to fix it, the code seems to be set up the way the CGI.PM docs > want it... but the output from the die command is not giving proper information. > > Another thing, do you folks have any idea how to check and make sure that and email > address is valid, by this i mean that it actually exists on a server?? >
Just use: $ENV{REQUEST_METHOD} The CGI module isn't used to retrieve enviromental variables. The environmental variables are in the %ENV hash. **** [EMAIL PROTECTED] <Carl Jolley> **** All opinions are my own and not necessarily those of my employer **** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs