if you want them in the exact insertion orderforeach my $key(sort keys %hash){......} #or numeric sort foreach my $key( sort {$a<=>$b} keys %hash){......}
hashes are so flexible, you just need to figure out the scheme you need.my $index=0; for(1..100){ $hash{$index}{'input1'} = $input1; $hash{$index}{'input2'} = $input2; #etc...... $index++; }
In reply to Re: about order in hash keys
by zentara
in thread about order in hash keys
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |