in reply to Bugs in File::Find on Windows
One possibility that should work is to turn on no_chdir for File::Find... but in fact, this is broken on Windows too! It fails to recurse at all.
The following works fine for me:
use strict; use warnings; use File::Find; find( {no_chdir => 1, wanted => sub { local($\)=$/; print if -d} }, 'E +:/windows');
i. e. prints all the name (paths) of all the subdirectories below and including my E:/Windows
In fact, I never liked the idea of changing the current directory inside my programs, so I always used File::Find with no_chdir and have never experienced problems with it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Bugs in File::Find on Windows
by jdporter (Paladin) on Feb 19, 2007 at 14:48 UTC | |
by pKai (Priest) on Feb 19, 2007 at 19:30 UTC |
In Section
Seekers of Perl Wisdom