You are setting your $abspath variable incorrectly. $File::Find::name will be the relative path from the directory you are in (i.e. `pwd`) not the directory where you start looking (i.e. the first argument to your script.) Try just setting $abspath to `pwd` and chomp.
Alternatively, you could call find() with $abspath rather than $path.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: File::Find, File::Spec, and full paths.
by sauoq
in thread File::Find, File::Spec, and full paths.
by mephit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |