http://qs1969.pair.com?node_id=395505


in reply to Match a Range of IP's

Hi there:

This is a task for NetAddr::IP...

perl -MNetAddr::IP -ne 'print "$_ match\n" if NetAddr::IP->new("192.168.1/24")->contains(NetAddr::IP->new($_))'

Best regards

-lem, but some call me fokat