in reply to Redirection from a server.
print CGI->redirect('Y'); exit; [download]
Absolute URIs are required by the HTTP spec. Calling redirect as a method in this context doesn't have a benefit over calling it as function and is probably slower.
perl -MCGI print CGI::redirect( CGI::url(-base => 1) . "/Y" ); [download]