in reply to Re^3: CGI.pm ignore URL GET query string parameters
in thread CGI.pm ignore URL GET query string parameters

"Do you mean the invocation method defined at CGI.pm's Creating-a-new-query-object-from-an-input-file of CGI)"
No I was wondering about something like use CGI qw( -ignore_get_params ). If that existed it would be a simple way to ignore GET params without having to check $cgi->request_method().

Replies are listed 'Best First'.
Re^5: CGI.pm ignore URL GET query string parameters
by pryrt (Abbot) on Mar 13, 2024 at 20:57 UTC
    No I was wondering about something like use CGI qw( -ignore_get_params ). If that existed it would be a simple way to ignore GET params without having to check $cgi->request_method().

    Then no, not as far as I know.

    Why do you want to avoid $cgi->delete_all() if $cgi->request_method() eq 'GET'; ? I cannot see how that's any harder or more confusing than the non-existent use CGI qw( -ignore_get_params ) that you suggested.