Altering URIs with regular expressions can get weird and break pretty fast. Something like this, using the modules I recommended earlier, is better-
perl -MCGI=self_url -le 'print self_url' "o=hai;i=can;haz=cheezeburger +" http://localhost?o=hai;i=can;haz=cheezeburger perl -MCGI=self_url -MURI -MURI::QueryParam -le \ '$u = URI->new(self_url); $u->query_param(haz => "tacoz"); print $u' + \ "o=hai;i=can;haz=cheezeburger" http://localhost?o=hai;i=can;haz=tacoz
In reply to Re^2: Perl-CGI refresh with different param(s)??
by Your Mother
in thread Perl-CGI refresh with different param(s)??
by jonc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |