You would be better off posting what you have and what it is you are trying to accomplish. You can do a redirect using something like: print $cgi->redirect($cgiurl);.
This is functionally equivalent to what suaveant has above.
You can learn more about the CGI module here.