in reply to redirect back to where you were

You can issue a redirect via the CGI module:
use strict; use warnings; use CGI; my $URI = "../html/thePage.html"; my $q = new CGI; print $q->redirect(-uri=>$URI);