When you define the keys, simply create an array with the keys ordered in the way you like.
my @iRecord_keys = qw( foo bar baz ); # . . . @iRecord{ @iRecord_keys } = split /\|/, $line;
-sauoq "My two cents aren't worth a dime.";
In reply to Re: split to hash, problem with random keys
by sauoq
in thread split to hash, problem with random keys
by december
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |