print OUT $hash{key1};
print OUT $hash{key2};
etc...
If you want them in a specific order, use them in that specific order. Or do something like:
my @keys = ('one', 'two', 'three');
for (@keys) {
print OUT $hash{$_};
}
Then, you have already predetermined your order, and can add/change it at any time.
Cheers,
KM |