in reply to [CGI] redirect after headers have been printed

I tend to agree with NetWallah. And to amplify that a bit further, I'd recommend using CGI::Session. The CGI::Session::Tutorial explains it best, esp.the dropping of cookies and query_strings.

See:CGI::Session::Tutorial

  • Comment on Re: [CGI] redirect after headers have been printed