in reply to How do you list all files under a directory?

My favorite IO module is IO::All
#Read all the files/directories in a directory: $io = io('my/directory/'); # Create new directory object @contents = $io->all; # Get all contents of dir