[tpm] OID sorting

Henry Baragar Henry.Baragar at instantiated.ca
Fri May 1 13:38:30 PDT 2009


On May 1, 2009 04:30:51 pm Uri Guttman wrote:
>   AH>   my @sortedpacked = sort { $a cmp $b} @packed;
>
> no need for the explicit cmp op as string compare is the default for
> sort. i think recent perls do optimize this away but it isn't needed
> anyway.

I one of the issues from last night was that a numeric comparison was required 
(not a string one).  That is "3" should precede "13".

Regards,
Henry

-- 

Henry Baragar
Instantiated Software
416-907-8454 x42
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20090501/38bb739f/attachment.html>


More information about the toronto-pm mailing list