in reply to Answer: How do I read files from a folder and place them into a list?in thread arrays
@files = sort grep (!/^\.\.?$/, readdir(DIR));
Unixish Shell Scripting languages
Other (post in comments)
Results (340 votes). Check out past polls.