use File::Find; find(sub {$size += -s if -f}, $dir); print $size, "bytes¥n";
Perlメモより
Powered by Movable Type 2.661