use CGI ':standard'; # do processing print redirect('http://example.com/');