Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: IP Address sorting

by tadman (Prior)
on Feb 13, 2001 at 08:13 UTC ( #58077=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub IPsort {
        map inet_ntoa($_),
        IP_radix_sort
        map inet_aton($_),
        @_;
      }
    
  2. or download this
        sub byip { inet_ntoa($a) cmp inet_ntoa($b) }
    
        foreach (sort byip @ip_list) ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://58077]
help
Chatterbox?
[1nickt]: (also skips . and .. automatically, and follows subdirs if you set <c\>recurse => 1</c>
[1nickt]: $it = path("/foo")-> iterator(recurse => 1 );

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (16)
As of 2017-03-28 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (340 votes). Check out past polls.