In your case, you are printing the header before redirect.
From the docs (emphasis mine):
The redirect() method redirects the browser to a different URL. If you use redirection like this, you should not print out a header as well.
"I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
-- Dr. Cox, Scrubs
In reply to Re: Perl CGI redirect
by NetWallah
in thread Perl CGI redirect
by aksusa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |