my $url = "http://$ENV{'SERVER_NAME'}/$ENV{'PATH_INFO'}?"; foreach (param) { $url .= "&$_=" . param($_); }