why this is not a closure though ?my $total_size =0; find{ sub $total_size += -s if -f}, '.'); print $total_size, "\n";
in my eyes my $a is visible outside the {} many thanksuse warnings; use strict; { my $a; } $a=1 print $a;
In reply to Closures clarification by props
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |