in reply to File::Spec error with rel2abs

If you don't give rel2abs a third parameter, it uses the current working directory. It doesn't try to be smart or actually figure out if the answer makes sense. It just smushes two paths together.

In your wanted() function, you can just use $_, which is only the filename portion, instead of $File::Find::name, or you can wait until you get the list of files and convert them later and specify the base directory.

Alternately, if you give File::Find::find() an absolute path to start with, you get an absolute path in $File::Find::name, and you don't need to convert every path you find.

--
brian d foy <bdfoy@cpan.org>