|Think about Loose Coupling|
Open a folderby Dr Manhattan (Beadle)
|on Jan 08, 2013 at 09:18 UTC||Need Help??|
Dr Manhattan has asked for the
wisdom of the Perl Monks concerning the following question:
I have a folder which contains a bunch of text files. Opening a text file is easy enough, but I am struggling to open a folder using Perl.
I am pretty sure I must use File::Find though. I read about it in Perl intro but it is too confusing for a novice like me.
All I want is to open my folder an iterate through all the text files within it while doing some basic calculations within each text file, but opening the folder is where I am struggling.
The directory of the file is C:\Users\ZB\Desktop\Text Files. I have a Windows OS.
Any help would be appreciated!