in reply to CGI redirect to new window/frame

Untested:

$query->redirect( -location => 'http://somewhere.else/', -target => $frame, );