my $q = new CGI; if ($q->param("URL")) {....} #### http://webserver/cgi-bin/myscript.pl?URL=http://www.google.com