http://qs321.pair.com?node_id=654796


in reply to Re: Closures clarification
in thread Closures clarification

And what else is he missing?
use File::Find; my $total_size = 0; find({sub $total_size += -s if -f}, '.'); print $total_size, "\n";
You were missing the "use" statement and a "(" in the find function.