No such thing as a small change | |
PerlMonks |
Re: Where am I going wrong ?by Albannach (Monsignor) |
on Oct 29, 2001 at 19:51 UTC ( [id://121927]=note: print w/replies, xml ) | Need Help?? |
You need to actually call sort if you want something sorted ;-)
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. --
In Section
Seekers of Perl Wisdom
|
|