0
Closure vs. Object in Perl
I was curios how closures performs in comparison with objects in Perl. I have tested it on counter as the simplest possible abstraction with state. use Benchmark qw(cmpthese); sub make_counter { my $counter = shift; return sub { $counter++ };
} package
- 25 00 comments [0]
Nov 11 2009 03:52 PM

Shuffle


































