in reply to Matching Sequential IP Addresses


map {  /$RE{net}{IPv4}{-keep}/ and print "last octet => $5\n" } keys %hashIPs;

hth,
PooLpi

'Ebry haffa hoe hab im tik a bush'. Jamaican proverb

Replies are listed 'Best First'.
Re^2: Matching Sequential IP Addresses
by derby (Abbot) on Apr 03, 2008 at 19:21 UTC

    Took me a while to realize that idiom's from Regexp::Common::net. I'm not normally a big fan of advocating non-core modules should be in the core, but I would vote for including Regexp::Common.

    -derby