Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to locate files above a certain size for all directories under '/wwwdev' on my website.
The script below is finding them OK but it's not printing the path of the file for me:
use File::Find; find (\&wanted, 'e:/inetpub/wwwdev'); sub wanted { my $size = -s; if ($size > 102400) { $Find::File::name = $name; print "$name, $size\n"; } }
What have I done wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getting directory path to file using File::Find
by Aragorn (Curate) on Nov 07, 2002 at 10:57 UTC | |
|
Re: getting directory path to file using File::Find
by cLive ;-) (Prior) on Nov 07, 2002 at 10:29 UTC | |
by Anonymous Monk on Nov 07, 2002 at 10:35 UTC |