use CGI ':standard'; print CGI->redirect(-location=>"http://www.food.com/bar.html"); #### ErrorDocument 404 /error_msgs/error_notfound.html ErrorDocument 500 /error_msgs/error_scriptproblem.html