[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Re: 2 Perl questions ?




> From: Courtney Thomas <ccthomas at joimail.com>

> 2-I also need to traverse a dir that itself contains dirs, processing
> 
> each file and dir. How do I traverse such a dir such that....when a
> dir 
> is encountered it is entered and all the files in it are then
> processed, 
> and if necessary drills down through other dirs [howto control depth 
> ?]...before returning to the original dir that contained files and
> dirs ?
> 

This is what perl's File::Find module was made to do. Install from CPAN
- no need to reinvent the wheel. :)

-Alex


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com