You could look at Net::IPv4Addr and Net::IPv6Addr for simply "comparing" IP addresses. If you're doing actual socket work, only then will you need to actually convert between presentation and network forms (ntop/pton).
You could always upgrade your Socket module. It's on CPAN - I believe is called "dual-lived" where it's in the core and on CPAN too.
I'm assuming you're *not* on Windows, which has other issues with inet_ntop() / pton(); see: http://vinsworldcom.blogspot.com/2012/08/ipv6-in-perl-on-windows_20.html.
In reply to Re: What is the alternate API's for inet_pton and inet_ntop in 5.10.1 perl version
by VinsWorldcom
in thread What is the alternate API's for inet_pton and inet_ntop in 5.10.1 perl version
by 25kisna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |