It's cheating, but Sub::Recursive kind of does that with very little effort for you.
and inside the block $REC is a reference to the subroutine.use Sub::Recursive; #my $foo = sub { ... }; my $foo = recursive { ... };
ihb
See perltoc if you don't know which perldoc to read!
In reply to Re: Anonymous coderefs
by ihb
in thread Anonymous coderefs
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |