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"; }
Windows only.
  • Comment on Re: How to read files in a directory, directory path to be given through CMD
  • Download Code