in reply to Re: How to read files in a directory, directory path to be given through CMD
in thread How to read files in a directory, directory path to be given through CMD
UPDATE: I tried with almost all the codes and most of them are working fine along with what I have pasted here. But the issue is that for some complex path it's not working.$dir =<>; chomp($dir); opendir DIR, $dir or die "cannot open dir $dir: $!"; my @file= readdir DIR; print @file; closedir DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to read files in a directory, directory path to be given through CMD
by stevieb (Canon) on Jun 11, 2012 at 19:22 UTC |