Just use an un-named subroutine assigned to a variable instead.
update: if you think about it for a bit, you might notice why using named nested named subroutines as closures isn't very useful anyway: it implies you're redefining the - global - inner subs at each call to the outer subs.
In reply to Re^3: Perl scoping not logical...?
by Joost
in thread Perl scoping not logical...?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |