You were missing the "use" statement and a "(" in the find function.use File::Find; my $total_size = 0; find({sub $total_size += -s if -f}, '.'); print $total_size, "\n";
In reply to Re^2: Closures clarification
by fenLisesi
in thread Closures clarification
by props
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |