in reply to Splitting IP ranges depending on overlap conditions
I'm not aware of a CPAN module that can do this.
You could convert your dotted-quad IP-addresses to integers, so you can do some simple math with them:
if ( $ip =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/ ) { $number = $1 >> 24 + $2 >> 16 + $3 >> 8 + $4 }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Splitting IP ranges depending on overlap conditions
by fishbot_v2 (Chaplain) on Apr 14, 2006 at 17:49 UTC |
In Section
Seekers of Perl Wisdom