in reply to Stat function returning an empty list
readdir doesn't return the path to the file, just the file name.
You have a file called "Language/French.txt" but are statting just "French.txt".
Change your stat call to:
stat("dir/$_");
In Section
Seekers of Perl Wisdom