use File::Find; my $total_size = 0; find(sub { $total_size += -s }, @ARGV ? @ARGV : '.'); print "Total size: $total_size\n";
In reply to Re: Recursion example (Directory sizing on the side)
by Fastolfe
in thread Recursion example (Directory sizing on the side)
by Beatnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |