# cookie stuff precedes use CGI; my $cgi = new CGI; $|=1; print $cgi->redirect(-cookie=>[$c], -uri=>"http://$URL/", # and possibly -nph=>1, );