in reply to Re: I need help with opening a directory and reading files in that directory.
in thread I need help with opening a directory and reading files in that directory.
Thanks shadowsong. I was looking through the perldocs and did see a lot of the information that you presented. It does help to get others opinion on this because the instructor that I have was telling me to us @ARGV to open the directory. That confused me even more because I had just did another assignment that parsed two files and did something with those files. But, the files were local to the .pl file I wrote. So, you could get away with that.
I figured that the glob or opendir would work just you look stated and based on the research I did on the internet and this site. So, I'm assuming that you can replace the $_ default variables with any name that you want. I do like how you explained the information on using stat info to see if it really is a file that we want to look at. I will get to work on fixing what I have created and I will let you guys know how it goes.
Thanks, Brandon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: I need help with opening a directory and reading files in that directory.
by 1nickt (Canon) on Sep 06, 2015 at 14:27 UTC |