>>>>> "someone" == someone  <[email protected]> writes:

someone> By the way, I can't get Perl's sort function to do the right thing
someone> exactly either.

someone>   my @sorted_ips=sort {$a <=> $b} @ip_list;

someone> This command sorts the first octet correctly, but not the second,  
someone> third, or fourth octets.  The numbers are in binary format when sort  
someone> is run on them.

What is "binary format"

Show me what might be in $a and $b there, and what order you want them
in.

Be precise.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to