Try using readdir http://perldoc.perl.org/functions/readdir.html

On Tue, Mar 1, 2016, 5:24 AM Arghya Das 
<arghya0...@gmail.com<mailto:arghya0...@gmail.com>> wrote:

use warnings;

$dir = "c:/folder/*";
my @files = glob( $dir );

foreach (@files ){
   print $_ . "\n";
}


i am trying to read windows directory using above code but it gives errors in 
recognising tthe directory path. please help.

Reply via email to