Dir::Iterate implements equivalents to the built-in C and C functions which traverse directories instead of arrays. The block will be called for each file and directory below the given list of directories. It acts as a more usable layer on top of File::Find. Install it by following the standard steps: perl Makefile.PL make make test make install