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?
In reply to getting directory path to file using File::Find by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |