in reply to return hash table

If you just want to return a list of the file names, look at File::Find::Rule or File::Finder