in reply to Re^11: sub fuction inside sub functioin?
in thread sub fuction inside sub functioin?
OK I just saw your update. IMHO this is the safest way to realize inner subs without stash side-effects and cyclic memory leaks.{ my $inner; sub outer { $inner=sub { ... $inner->(); ... } } }.
To get back to the OT, I recommend it this way.
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: sub fuction inside sub functioin?
by ikegami (Patriarch) on Dec 08, 2008 at 17:08 UTC |