![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: sorting ip octetsby TedPride (Priest) |
on Feb 16, 2005 at 19:13 UTC ( #431692=note: print w/replies, xml ) | Need Help?? |
Or, a somewhat more readable version:
Basically, you convert to fixed width (3 chars per octet), sort, and convert back to the original unpadded numbers.
In Section
Seekers of Perl Wisdom
|
|