in reply to File::Find, File::Spec, and full paths.
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.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Find, File::Spec, and full paths.
by Aristotle (Chancellor) on Sep 04, 2002 at 03:39 UTC | |
|
Re: Re: File::Find, File::Spec, and full paths.
by mephit (Scribe) on Sep 03, 2002 at 21:07 UTC |