in reply to Net::SNMP question

You can either pack the OIDs back into one large number and then sort on that number, or you can do a natural sort on the strings, either with one of the solutions posted by tye or by using Sort::Natural. A natural sort usually splits a string on numbers and then sorts the list by comparing non-numbers as strings and numbers as numbers.

Replies are listed 'Best First'.
Re^2: Net::SNMP question
by giany (Acolyte) on Oct 24, 2008 at 08:46 UTC
    Thanks for your answers..Sort::Key::Natural helped me.