use CGI (); print CGI::redirect( -status => 301, -url => "http://192.168.1.3" );