use CGI; my $q = new CGI(); print $q->redirect("/xyz/foo.txt");