in reply to list of files in subdirectories
opendir(DIR, "/home/test"); @files = readdir(DIR); closedir(DIR); foreach $file (@files) { next if ($file eq "." or $file eq ".."); print $file; } For More detailed work on this can be found on below Link http://www.perlmonks.org/?node_id=489552
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: list of files in subdirectories
by davido (Cardinal) on Jun 06, 2012 at 16:17 UTC |