in reply to How do I read files from a folder and place them into a list?

Open the directory with opendir, then call sort on your readdir. You might want to use file tests -X to see if you have only files.

Something like the following may work:

opendir DIR, $dir or die "Can't open $dir: $!"; my @files = sort grep { -f "$dir/$_" } readdir DIR; # work with @files