in reply to Help with ReadDir and Stat?

Use File::Find, and if you don't like the interface use File::Find::Rule instead.