in reply to How do I redirect to another URL after I already specified an html header?
print $cgimain->redirect( -Location => 'http://nameofurl' -nph => 1, -status => 302, -cookies => $cookie ); [download]