If you want to do it within an HTML document then you should use javascript and hope that your users have javascript enabled. If you want to do it within a perl CGI then you can print out a Location line in your header. print "Location: http://www.somewhere.com/\n" (you'll of course need another \n to terminate the header).