in reply to redirect a CGI script (was: redirect)

Assuming you're using CGI.pm, use the redirect method:
print redirect("http://www.elsewhere.com/some/document.html");
(And if you're not using CGI.pm, you should be.)