in reply to How to read files in a directory, directory path to be given through CMD
use strict; use warnings; my @files = `dir /b`; foreach(@files){ chomp($_); print $_."\n"; } [download]