Alshough the compare routine is not particularly efficient.sort { ip_sort() } keys %hash sort ip_sort(keys %hash) sort(ip_sortkeys %hash) sort(ip_sort (keys %hash))
You may want to consider converting the IP to binary, and/or using the schwartzian transform.
"I can cast out either one of your demons, but not both of them." -- the XORcist
In reply to Re: Sorting Hash Value Object's IPv4 Address
by NetWallah
in thread Sorting Hash Value Object's IPv4 Address
by razmeth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |