You don't say what order you want the data back in. If you want alphabetical order by key, that's easy:
foreach my $grp (sort keys %grp_advise) { ...
If you want them back in the order you added them, that's not possible with a perl hash. Or at least, it's substantially more difficult. ;-)
In reply to Re: hash unorderly output
by muntfish
in thread hash unorderly output
by whatluo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |