[tpm] OID sorting

Indy Singh indy at indigostar.com
Sat May 2 06:57:57 PDT 2009

Just trying to understand the problem to be solved.
Why does this key and value not match?  Is it a typo?
In the real application is the key meant to be an OID and the value just some value that we don't cate about?  ARe you trying to sort by the hash keys or hash values?

    "" => "1.2.4",

Indy Singh
IndigoSTAR Software -- www.indigostar.com

  ----- Original Message ----- 
  From: Henry Baragar 
  To: Toronto Perl Mongers 
  Sent: Friday, May 01, 2009 2:46 PM
  Subject: [tpm] OID sorting


  There were a couple of suggestions for Fulko about how to improve his sorting of OID's (strings of the form ^\d+([.]\d+)*$). Attached is my suggestion for rebuilding the tree and walking the tree. I would be curious to see how this solution compares to the other solutions, both in terms of readability and performance.



  Henry Baragar
  Instantiated Software
  416-907-8454 x42


  toronto-pm mailing list
  toronto-pm at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20090502/55d964fc/attachment.html>

More information about the toronto-pm mailing list