The stupid question is the question not asked | |
PerlMonks |
Re: Alphabetical order with .txt fileby lemming (Priest) |
on Apr 17, 2002 at 01:21 UTC ( [id://159694]=note: print w/replies, xml ) | Need Help?? |
Like grep says: use strict; use warnings; That won't catch your problem though. You're adding a space with @list1[$nk] = "$item1 \n";. Try dropping the space before the newline. Other concerns:
Update: boo has an excellent point. I just glossed by that point.
In Section
Seekers of Perl Wisdom
|
|