in reply to Re^2: how to move to new page on successful login
in thread how to move to new page on successful login

You'll either do the redirect or you print the header and emit an HTML page:

use CGI; ... $q = new CGI; my $login_ok = check_login($q); if ($login_ok) { $q->redirect(...); } else { $q->header(...); # emit html page }