in reply to IO::Socket:INET doesn't attempt to connect

I'm not sure why you're so over-specifying the socket. What's wrong with just this?
use IO::Socket::INET; my $s = IO::Socket::INET->new("www.perl.org:80");

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: IO::Socket:INET doesn't attempt to connect
by BrowserUk (Patriarch) on Apr 24, 2003 at 05:58 UTC

    Thanks merlyn++ Not only did that work fine, it also made me realise my error in the long form.

    If I make up the parameter names instead of using the ones in the POD, they aren't going to be recognised.


    Examine what is said, not who speaks.
    1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
    2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
    3) Any sufficiently advanced technology is indistinguishable from magic.
    Arthur C. Clarke.