in reply to Re: Closures clarification
in thread Closures clarification
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";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Closures clarification
by memnoch (Scribe) on Dec 04, 2007 at 16:35 UTC |