4 ms·
And its also handy that you can create a closure without needing to define a subroutine: my $c = do { my $n = 5; sub { ++$n } };
by draegtun 15y ago
And its also handy that you can create a closure without needing to define a subroutine:
my $c = do {
my $n = 5;
sub { ++$n }
};