in reply to How to open files found via File::Find

Replies are listed 'Best First'.
Re^2: How to open files found via File::Find
by jwkrahn (Abbot) on Jan 08, 2010 at 07:28 UTC
    Finally, $_ only contains the name of the file, not the path to the file. You need to use $File::Find::name.

    Actually, File::File::find() changes directories while tranversing the file system so $_ doesn't need the path because $_ is in the CWD (which is in $File::Find::dir).