|
|
| P is for Practical | |
| PerlMonks |
RE: Sorting a list of IP addresses (aka Why I hate Big O)by Maqs (Deacon) |
| on Aug 03, 2000 at 22:01 UTC ( #26039=note: print w/ replies, xml ) | Need Help?? |
|
I'd try another solution :)
, getting rid of '.' (couse now they play no role) write these adresses to a txt file and then sort them execing external 'sort'? Then convert them back to decimal , '.'-separated.. and voi la... I havent tested that, but it seems to me it'll be quicker. /Maqs.
In Section
Meditations
|
|
||||||||||||||||||||