my $obj = CGI->new(); if ( $results->has_missing() or $results->has_invalid() ) { print $obj->redirect($url); }