Subject: | AI_NUMERICHOST not globally supported |
On my system this happens:
C:\Users\Mithaldu>perl -MSocket=getaddrinfo,AI_NUMERICHOST -MData::Dump=pp -E "say pp [ getaddrinfo( q[127.0.0.1], 80, { flags => AI_NUMERICHOST } ) ]"
["nodename nor servname provided, or not known"]
C:\Users\Mithaldu>perl -MSocket=getaddrinfo,AI_NUMERICHOST -MData::Dump=pp -E "say pp [ getaddrinfo( q[127.0.0.1], 80 ) ]"
[
"",
{
addr => "\2\0\0P\x7F\0\0\1\0\0\0\0\0\0\0\0",
canonname => undef,
family => 2,
protocol => 6,
socktype => 1,
},
{
addr => "\2\0\0P\x7F\0\0\1\0\0\0\0\0\0\0\0",
canonname => undef,
family => 2,
protocol => 17,
socktype => 2,
},
{
addr => "\2\0\0P\x7F\0\0\1\0\0\0\0\0\0\0\0",
canonname => undef,
family => 2,
protocol => 0,
socktype => 3,
},
]
C:\Users\Mithaldu>cpan Socket
CPAN: Term::ANSIColor loaded ok (v4.02)
CPAN: Win32::Console::ANSI loaded ok (v1.06)
CPAN: Storable loaded ok (v2.45)
Reading 'C:\Perl\cpan\Metadata'
Database was generated on Sat, 17 May 2014 12:53:02 GMT
CPAN: Module::CoreList loaded ok (v3.03)
Socket is up to date (2.013).
C:\Users\Mithaldu>perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)