in reply to IO::Socket::INET->new(): short form v. long form
Arrrgh. What a blunder....yet the long form for IO::Socket::INET->new() still won't work!
Edit: Ok, I got the long form to work with PeerPort => 80, but it doesn't work for me with PeerPort => 'http(80)'.
It'd be kinda nice if the module reported failure for the connect attempt though.
Yes. At first I assumed the connection had failed, but then I realized my die() didn't execute.
Edit2: lol. The combined form for PeerPort works for me if I add a space between 'http' and the port number:
PeerPort => 'http (80)',And to make sure it was really working, i.e. looking up the port number for the specified service, 'http', and if not found then using the port number in parentheses, I tried this:
PeerPort => 'abcxyz (80)',
and I was able to successfully make a connection and get a response.
|
|---|