On Jul 17, 2004, at 11:20 AM, Adam Worrall wrote:

  my $sock = IO::Socket::INET->new ({'Proto' => 'tcp',
                                     'PeerAddr' => 'localhost',
                                     'PeerPort' => 80});


I may be mistaken but I'm fairly sure that IO::Socket::INET takes a list of arguments, not a hashref.


The code in IO::Socket::INET seems to reflect that:

    sub new {
        my $class = shift;
        unshift(@_, "PeerAddr") if @_ == 1;
        return $class->SUPER::new(@_);
    }

While setting PeerAddr to a reference shouldn't cause a segfault (and doesn't for me), it still might be something to keep in mind.

--
Chris Reinhardt -- [EMAIL PROTECTED] -- http://www.dyndns.org/
All sorts of computer errors are now turning up. You'd be surprised
to know the number of doctors who claim they are treating pregnant men.
            --Isaac Asimov


-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to