To do a browser redirect in perl,
my $cgi = new CGI();
$cgi->redirect( -URL => 'www.boohoo.com');
All browsers comply with this.
Do not print header() first.