http://qs321.pair.com?node_id=164293


in reply to Re: ip address calculations
in thread ip address calculations

my ($s,$e) = unpack 'N2',172.16.0.1 . 172.17.0.0; printf("%vd\n",pack 'N',$_) for ($s..$e) __DATA__ Range iterator outside integer range at test.pl line 2.

This will fail on "real" addresses (that exceed integer range) as shown.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print