in reply to list of files in subdirectories
You can also use opendir system call
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
Best Regards,
S.Sabarinathan,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: list of files in subdirectories
by davido (Cardinal) on Jun 06, 2012 at 16:17 UTC |
In Section
Seekers of Perl Wisdom