Hey Guys,
I am having trouble going through a list of hashes, in order...
i.e. i have these hashes (i think thats what it's called... i get confused you know, hashes arrays, etc.. why didnt they call them bananas and apples?! ):
$option{z} = "z";
$optionvalue{z} = "valuez";
$option{a} = "a";
$optionvalue{a} = "valuea";
then i have a loop that i want to go through each option{xxx}... but it is sorting it in some mestirous way.. (i dont think it is alfabetical!)
foreach $name (keys %option){
print $optionvalue{$name};
}
can anyone shed a light???
Thanks!
------------------
Sincerely,
Roy Nasser
roy@nasser.com.br
I am having trouble going through a list of hashes, in order...
i.e. i have these hashes (i think thats what it's called... i get confused you know, hashes arrays, etc.. why didnt they call them bananas and apples?! ):
$option{z} = "z";
$optionvalue{z} = "valuez";
$option{a} = "a";
$optionvalue{a} = "valuea";
then i have a loop that i want to go through each option{xxx}... but it is sorting it in some mestirous way.. (i dont think it is alfabetical!)
foreach $name (keys %option){
print $optionvalue{$name};
}
can anyone shed a light???
Thanks!
------------------
Sincerely,
Roy Nasser
roy@nasser.com.br