X:\>perl -MFile::Find -le "sub process_file{print $File::Find::name if -f };find (\&process_file,'test with whitespace')" #### use File::Find; print "Enter your root directory\n"; $root = ; sub process_file{ print $File::Find::name if -f ; } find (\&process_file,$root); #### %> a.pl Enter your root directory: D:\DBS %> Can't state D:\DBS