in reply to Extract form fields & values from query string of http_referrer

Rewrite your %ENV before initializing the CGI object:
use CGI; use URI; $ENV{'QUERY_STRING'} = URI->new($ENV{'HTTP_REFERER'})->query; my $q = CGI->new; ...

Now you can access the referer's parameters with $q->param(whatever).

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}