Hi!
How would you do it manually? You would probably
- read the file (into a list in "memory")
- sort that list by lenght of the entries and alphabetically
- write down the sorted list
So you have just to do that in perl. You might think of arrays,
open,
sort and
print.
HTH, Rata