in reply to Re^2: CGI redirect to new window/frame
in thread CGI redirect to new window/frame

Then you still have to solve your problem on the HTML or Javascript side, I don't think you can solve it with Perl.