in reply to Get File list from the path

File::Finder is an option too.
use File::Finder; my @files = File::Finder->type('f')->in($dir);