How can I parse IP addresses and address ranges with perl?
Posted
by Andrey Zentavr
on Stack Overflow
See other posts from Stack Overflow
or by Andrey Zentavr
Published on 2010-04-13T01:29:14Z
Indexed on
2010/04/13
6:52 UTC
Read the original article
Hit count: 302
I have list of IPs:
238.51.208.96/28
238.51.209.180-199
238.51.209.100-109
238.51.213.2-254
...
How can I easily parse them? I need first and last IP from range.
For the first line I can use Net::Netmask CPAN module, but what can I do with others lines?
© Stack Overflow or respective owner