if (-r $dir) { find(sub { $total += -s }, $dir); $total = ($total / 1024) / 1024; $total = sprintf("%0.2f", $total); print OUT "$dir, $total, mb, \n"; } else { # however you want to deal with this condition }
In reply to Re: File::Find question
by Zed_Lopez
in thread File::Find question
by Concept99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |