Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How best to support IPv4/v6 in Perl server

by Anonymous Monk
on Jan 26, 2012 at 17:18 UTC ( #950170=note: print w/replies, xml ) Need Help??


in reply to How best to support IPv4/v6 in Perl server

That's easy. If you have Perl 5.14 or later, use IO::Socket::INET (core module, IP-dualstack). Any other Perl, install and use IO::Socket::IP (CPAN module, IP-dualstack).
  • Comment on Re: How best to support IPv4/v6 in Perl server

Replies are listed 'Best First'.
Re^2: How best to support IPv4/v6 in Perl server
by VinsWorldcom (Parson) on Jan 26, 2012 at 17:23 UTC

    Didn't realize that - so in 5.14 and on, IO::Socket::INET *includes* IPv6?

    Of course, as you point out, that won't be backward compatible, I'll still need to 'use' IO::Socket::IP or IO::Socket::INET6 for older Perl versions.

    Thanks!

    Anyone else have an opinion?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950170]
help
Chatterbox?
[james28909]: well i have officially wore my brains out on hash refs and array refs and hash of arrays
[james28909]: push @{$hash{$ref}}, $this, $that, $the_other;
[james28909]: for 0 .. 3 {print $hash{$ref}}$_;
[james28909]: or i guess that is a hash ref
[james28909]: hash of array ref <.<
[james28909]: im also about to embark on porting the discord api to perl, without having to have 400 dependencies...
[james28909]: would be nice to link doscord to irc and other services

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2017-05-01 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (544 votes). Check out past polls.