There is a function/method called delete_all in CGI.pm that does what you need, but I think you have a different problem: you can't change the url showed by clients browsers inside your script; the url is used to invoke the script and it is not the result of your operations unless you issue a redirect. If your final purpose is to hide the params you can set METHOD attribute of FORM with POST.
Ciao, Valerio
In reply to Re: removing/stripping query string params
by valdez
in thread removing/stripping query string params
by drfrog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |