I consider it a bad idea to define a named sub within another sub
I agree 100%. Anon subs are another story. For example, I use constructs such as
sub foo { my $shared_with_all_recur = ...; local *_recur = sub { ... _recur(...); ... }; _recur(...); }
In reply to Re^2: Defining a sub within a sub: OK?
by ikegami
in thread Defining a sub within a sub: OK?
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |