in reply to File::FInd subfolders
File::Find changes the working directory as it traverses the directory tree and the $File::Find::name contains the complete path from the starting directory. You want to use $_ instead. That is just the filename, without path.
HTH, Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
Edit by castaway: Closed small tag in signature
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File::FInd subfolders
by Anonymous Monk on May 24, 2004 at 16:44 UTC | |
by Jenda (Abbot) on May 24, 2004 at 18:49 UTC |