On 07/06/2007 04:46 PM, Chris Ryan wrote:
yitzle wrote:
1) There are filesystem modules already out there.
2) You might want to consider using a more generic recursive structure.
3) To answer your question, check its a directory and not a file.
while ($yearly = readdir(TOTALHANDLE)) {
next unl
I understand the -next- concept, but adding this line made no
difference. I got the same output as without it.
--Chris
yitzle wrote:
> 1) There are filesystem modules already out there.
> 2) You might want to consider using a more generic recursive structure.
>
> 3) To answer your question, che
Thanks. I was vaguely aware of modules that would do this. Doing it "by
hand" at first is a good learning exercise for me.
I can indeed check to see if the thing I'm looking at is a directory.
But why does it do this? Can you help me understand why when I think I
am "in" one directory, my script
1) There are filesystem modules already out there.
2) You might want to consider using a more generic recursive structure.
3) To answer your question, check its a directory and not a file.
while ($yearly = readdir(TOTALHANDLE)) {
next unless (-d $yearly);
--
To unsubscribe, e-mail: [EMAIL PROTE
Running Perl on WinXP
I would like to read the subdirectories and their respective files, that
I have on my F: drive. They are arranged hierarchically, with a
directory for each year, each of which contains a directory for each
month, each of which contains files named for days. Like this:
F: