No, that is a problem with your code. Closures close over lexicals. $_ is not a lexical. You deleted a line that I inserted quite intentionally and thus broke the code.
- tye
In reply to Re^3: how to get alias name of anonymous sub? (closure)
by tye
in thread how to get alias name of anonymous sub?
by gian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |