Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: sorting ip octets

by eclark (Scribe)
on Feb 16, 2005 at 21:34 UTC ( #431764=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sort {
        my @a = split(/\./, $a);
        my @b = split(/\./, $b);
    ...
        $a[3] <=> $b[3]
    
    } @list
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://431764]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2022-08-14 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?