It would really help if you had of showed us your code (please edit your question with the code, putting it within <code></code> tags), but regardless, using the no_chdir parameter to File::Find often helps work around these issues:
use warnings; use strict; use File::Find; my $dir = '.'; find ({ wanted => \&wanted, no_chdir => 1 }, $dir); sub wanted { print "$File::Find::name\n" if -f; }
Note that when using the no_chdir param (or any other params for that matter), all params less the directory to search must be passed in within a hash reference per above. Also note that when you're using no_chdir, you won't get the full file path by default, so as I've illustrated in the above code, simply use $File::Find::name to get the filename as "/full/path/to/file.ext".
-stevieb
In reply to Re: File and Folder length problems
by stevieb
in thread File and Folder length problems
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |