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 }, '.');
In reply to Re: unable to open files in dirs retrived by File::Find
by almut
in thread unable to open files in dirs retrived by File::Find
by kurreburre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |