in reply to Need help with HTTP::Proxy

Most likely, the proxy.somewhere.com address cannot be bound to an interface of your network card. Make sure that proxy.somewhere.com resolves to the machine you run your proxy on and that one network interface handles the IP address.

But why are you setting the host parameter at all? It shouldn't be necessary - try your code without it, or try giving it an IP address instead of a hostname, to eliminate DNS weirdness.