use CGI qw(:standard); my $query = CGI -> new(); $query -> redirect(-uri => 'http://blah.com');