P is for Practical | |
PerlMonks |
Reading Files Across Directories and Sub Directoriesby koti688 (Sexton) |
on Dec 02, 2008 at 11:03 UTC ( [id://727366]=perlquestion: print w/replies, xml ) | Need Help?? |
koti688 has asked for the wisdom of the Perl Monks concerning the following question:
I have a directory named "X" which has many sub directories "Y","Z","W" and many files about 20 files. and these sub directories also contain some more sub directories and files extra
check the Attached screen shot .What i need is , i want to read all the files that exists in directories , subdirectories and need to display . i tried until 2 loops , but unable to complete the logic well. This is my code
Can you please tell me how to proceed to read into an array or variable and display all the files across Directories and Subdirectories .
Back to
Seekers of Perl Wisdom
|
|