You need to sort the whole @list and then loop through to print if that's what you're after. Since you are sorting by the first field anyway, why bother with the 8 character restriction? I'd think that just adding @list = sort @list; before your printing loop should do what you want.
--
I'd like to be able to assign to an luser
In reply to Re: Where am I going wrong ?
by Albannach
in thread Where am I going wrong with printing flatfile db records in alphabetical order?
by caciqueman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |