Hervé SCHLECHT Blog's
Tuesday, January 17, 2006
Sort IP Address with PERL
@out = sort {
pack('C4' => $a =~
/(\d+)\.(\d+)\.(\d+)\.(\d+)/)
cmp
pack('C4' => $b =~
/(\d+)\.(\d+)\.(\d+)\.(\d+)/)
} @in;
http://www.sysarch.com/Perl/sort_paper.html
posted by Hervé SCHLECHT @
9:52 PM
<< Home
About Me
Name:
Hervé SCHLECHT
View my complete profile
Previous Posts
AM or PM
W32/WMF-exploit
Object Filler 2.2 just released
Sharepoint Blogs
What is CheckPoint NGX R60A ?
What is CheckPoint NG AI R55P ?
ISO/CEI 177799
Factory reset for NOKIA IP devices
CISCO SMI / EMI
Power over Ethernet 802.3 af
<< Home