sub make_counter { my $start = shift; return sub { warn \$start; $start++ } } [download]
In reply to Re: Closure Explanation by Anonymous Monk in thread Closure Explanation by bichonfrise74