If you use a list of lists, you can do something like: my @sorted = sort { $a[0] cmp $b[0] } @records; If you use a list of hashes, you could do: my @sorted = sort { $a{TYPE} cmp $b{TYPE} } @records; If you're using just an array... you're in for more trouble, and you might want to look at using SQL commands with the DBI module from CPAN.
In reply to Re: Newbie help
by chromatic
in thread Newbie help, again
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |