[BNE-PM] Socket Error Anyone help with this one ?

Andrew Pollock apollock at bit.net.au
Thu Aug 5 22:56:02 CDT 1999


> -----Original Message-----
> From: owner-brisbane-pm-list at happyfunball.pm.org
> [mailto:owner-brisbane-pm-list at happyfunball.pm.org]On Behalf Of Ramon
> Buckland
> Sent: Friday, 6 August 1999 12:29
> To: brisbane-pm-list at happyfunball.pm.org
> Subject: [BNE-PM] Socket Error Anyone help with this one ?
>
>
> Anyone able to help with this .. I am unsure if its
> Socket.pm that the grief or some other section.
>
> -----------8<-----------8<
> #!/usr/bin/perl
>
> use Net::Ping;
>     my $host = 'localhost';
>
>     my $p = Net::Ping->new();
>
>     if (!$p->ping($host)) {
>
>        print "host is alive\n";
>
>     }
>
>     $p->close();
> -----------8<-----------8<
>
> $perl pingtest.pl
> Bad arg length for Socket::unpack_sockaddr_in, length is 0,
> should be 16 at
> /usr/lib/perl5/i686-linux/5.00405/Socket.pm line 275.
>
> ???
>
> I tried reinstalling Perl (it installed without error) (because Socket.Pm
> comes in that
> Version: 5.004_05 : Errors
> Version: 5.005_02 : Errors
>
>
> Any ideas ?

Linux boxen?
I've seen it before. On one box it works, on another it doesn't. I ended up
getting the shits and writing a shell script instead...

Andrew




More information about the Brisbane-pm mailing list