I thought I remembered there being a pragma or something that allowed that, but I'm probably misremembering.
Do you mean the invocation method defined at CGI.pm's Creating-a-new-query-object-from-an-input-file of CGI), which has the example:
To create an empty query, initialize it from an empty string or hash:my $empty_query = CGI->new(""); -or- my $empty_query = CGI->new({});
This creates your query object without any parameters from the get-go.
Or, if you want to use the parameters at first so that you can extract information, but then delete them before outputting any HTML so they don't pre-populate forms, then you probably want to read Deleting-all-parameters of CGI to find $q->delete_all(); , which will delete the parameters at your whim.
In reply to Re^3: CGI.pm ignore URL GET query string parameters
by pryrt
in thread CGI.pm ignore URL GET query string parameters
by Danny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |