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
In reply to Re: Hash Order
by MidLifeXis
in thread Hash Order
by Sporti69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |