Re: trouble reading subdirectories and files in a directory

2007-07-06 Thread Chris Ryan
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

Re: trouble reading subdirectories and files in a directory

2007-07-06 Thread Chris Ryan
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

trouble reading subdirectories and files in a directory

2007-07-06 Thread Chris Ryan
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: