Are you sure your CGI script (Apache) has permissions to run your LWP script?
In reply to Re: Bad hostname by Gangabass in thread Bad hostname by alvise