in reply to unable to open files in dirs retrived by File::Find
You need to use the option no_chdir, otherwise File::Find will chdir into the subdirectories it recurses into, so the relative path no longer applies...
find({ wanted => \&process_file, no_chdir => 1 }, '.');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unable to open files in dirs retrived by File::Find
by kurreburre (Acolyte) on May 28, 2008 at 07:31 UTC |