for my $ita (sort { sort_italian() } keys %hash) { # loop code goes here }
Here's what the code above does.
See perlsyn for more info on the for (also known as foreach) operator. See the section "Foreach Loops" there; stay away from the C-style loops described in the "For Loops" section unless you know you need one.
Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.
In reply to Re^4: Need help figuring out how to order/eval the numbers
by aaron_baugher
in thread Need help figuring out how to order/eval the numbers
by perlynewby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |