in reply to Re^3: How to parse URL in CGI.pm
in thread How to parse URL in CGI.pm

Should there be a problem using the $ENV{'QUERY_STRING'} if the program runs under mod_perl?

Replies are listed 'Best First'.
Re^5: How to parse URL in CGI.pm
by ikegami (Patriarch) on Dec 07, 2010 at 09:06 UTC

    The environment variable is part of the CGI interface. If your script is being provided a CGI interface, it will be present. Otherwise, it won't.

    mod_perl doesn't necessarily present a CGI interface to your module, but it doesn't preclude it either.

      What if the call is POST?

      It seems that the ENV is empty
        Um, then its not a QUERY, by definition, are GET requests with the QUERY part of the url containing the query :)