in reply to return hash table

File::Find says that the return value from the wanted function is ignored. Just remove the assignment to 'find' and your function will set the global hash %fileInfo.