in reply to Hash Order
Assume: 'Number' always exists, and the order of the rest of the keys do not matter.
my %hash = ( EX => 'ArraySite', AM => 'IOPort', PLE => 'AddressGroup', Number => '11', ); for my $key ( 'Number', (grep {$_ ne 'Number'} keys %hash) ) { my $value = $hash{$key}; print "$key => $value\n"; }
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash Order
by bart (Canon) on Nov 18, 2008 at 10:21 UTC |