Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Output:use strict; use Net::SNMP; my @unsort = qw/ 1.3.6.1.2.1.1.5 1.3.6.1.2.1.1.4 1.3.6.1.2.1.1.1 1.3.6 +.1.2.1.1.2/; my @sort = Net::SNMP->oid_lex_sort(@unsort); local $, = "\n"; print @unsort; print "\n-------\n"; print @sort;
Any clue why it's doing this? I'm fairly new to this whole perl module thing, but the documentation doesn't say anything about this kind of behavior.1.3.6.1.2.1.1.5 1.3.6.1.2.1.1.4 1.3.6.1.2.1.1.1 1.3.6.1.2.1.1.2 ------- Net::SNMP 1.3.6.1.2.1.1.1 1.3.6.1.2.1.1.2 1.3.6.1.2.1.1.4 1.3.6.1.2.1.1.5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Confusion with Net::SNMP
by Transient (Hermit) on Jul 07, 2005 at 15:46 UTC | |
by Anonymous Monk on Jul 07, 2005 at 15:50 UTC |