http://www.perlmonks.org?node_id=996456


in reply to "getaddrinfo" is not exported by the Socket module

BEGIN { unshift @INC, "/home/neil/perl5/lib/perl5" }

Is the "later version" of Socket.pm located in the /home/neil/perl5/lib/perl5/ directory ?
I expect it might be in a *sub-directory* of that location. If so, then you'll still be loading the original version of Socket.pm.

Update: Of the various versions of Socket that I have, version 1.94 is the earliest version that exports getaddrinfo. (I have it with perl-5.14. The versions I have with 5.10.0 and 5.12.0 don't export getaddrinfo.)

Cheers,
Rob
  • Comment on Re: "getaddrinfo" is not exported by the Socket module

Replies are listed 'Best First'.
Re^2: "getaddrinfo" is not exported by the Socket module
by neilwatson (Priest) on Sep 30, 2012 at 16:17 UTC

    The later version of Socket I installed is here: /home/neil/perl5/lib/perl5/x86_64-linux-thread-multi/Socket.pm

    Neil Watson
    watson-wilson.ca