in reply to Re^3: Using Perl To Redirect To Other Pages
in thread Using Perl To Redirect To Other Pages

If the question asked for how to use HTTP to redirect, I'd probably think to give the print "Location..." answer but when asked for cgi, even in lowercase, we do tend to think of CGI.pm. Plus, though the print "Loc..." works, it is short on headers. It's fine to do it yourself but doing it right is usually easier through an interface. Even one that is less than ideal.

~>perl -MCGI -le 'print CGI::redirect("http://perlmonks.org")' Status: 302 Found Location: http://perlmonks.org