http://www.perlmonks.org?node_id=173202


in reply to Re: Perl web redirect
in thread Perl web redirect

Using CGI for this triviality seems like overkill.
#!/usr/bin/perl print "Location: http://www.somewhere.com\n\n"; __END__
Will do. Of course, using perl is overkill, you may as well write a one liner in C:
int main () {printf ("Location http://www.somewhere.com\n\n");}

Abigail