S
still just me
Newbie hash question:
I have a hash loaded with keys / values. I need to pull the values out
in the same order I have them physically listed in the source program
(or use some scheme to achieve that).
I pulled them like this:
my $tempValue="";
foreach $tempValue (values %outputFileHeadings)
{
$outputMessage = $outputMessage . $tempValue
}
They seem to come out in a random order. Is there some way to pull
them in the same order they are physically listed in the program ?
I have a hash loaded with keys / values. I need to pull the values out
in the same order I have them physically listed in the source program
(or use some scheme to achieve that).
I pulled them like this:
my $tempValue="";
foreach $tempValue (values %outputFileHeadings)
{
$outputMessage = $outputMessage . $tempValue
}
They seem to come out in a random order. Is there some way to pull
them in the same order they are physically listed in the program ?