in reply to CGI Parameters

If you want to query parameters passed in the URL, use url_param.

Update: as an explanation of the behavior you're seeing: CGI.pm looks into the URL for GET requests and into STDIN for POST requests. url_param will always look into the URL.

Replies are listed 'Best First'.
Re^2: CGI Parameters
by salazar (Scribe) on May 19, 2009 at 17:53 UTC
    Ok... but that still doesn't explain why using import_params brings in GET variables only when there is nothing POST'd.
      Maybe you could enlighten me as to what import_params is? I don't see it in the docs, so I guess it's not part of the official distribution.

      If it's something you wrote, maybe post it here?