Efficient sorting of SNMP oids

Uri Guttman uri at StemSystems.com
Sat Oct 31 19:12:23 GMT 2009


>>>>> "RF" == Richard Foley <Richard.Foley at rfi.net> writes:

  RF> Should that be a numerical sort via the spaceship operator?
  RF> 	<=> instead of cmp

nope, since he is trying to compare a long string of the packed
OIDs. you can't compare woth <=> anything other than normal integers or
floats.

uri

-- 
Uri Guttman  ------  uri at stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------


More information about the london.pm mailing list