in reply to Perl CGI redirect
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl CGI redirect
by Anonymous Monk on Apr 16, 2013 at 14:22 UTC | |
by hippo (Archbishop) on Apr 16, 2013 at 16:23 UTC |