in reply to Re: File::Find stat question
in thread File::Find stat question
Alternatively, do the stat on $File::find::name
Actually, you want to do the stat on $_. In typical usage, File::Find has chdir'd into "sub/dir" and found "file.foo" and thus has set $_ to "file.foo" and set $File::Find::name to "sub/dir/file.foo". So doing stat on $File::Find::name will usually fail (once you've gone at least one subdirectory deep).
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File::Find stat question ($_)
by Anonymous Monk on Nov 24, 2014 at 03:23 UTC |