First, local *__ANON__ is just that... local. It only affects the enclosing block (i.e., the sub body in its current execution), and reverts as soon as it goes out of scope when the sub exits.Yes, of course. Somehow the local aspect didn't register in my head.
I had seen the Sub::Name, but there's a lot of resistance to install another module on multiple systems. It will be a debate about whether __ANON__ is easier to take than adding an XS module to the installation distribution.
Since we do control the grumble code, another option is to pass in an optional name to use in case the coderef is an anonymous sub.
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^2: Naming an anonymous sub for svref_2object
by QM
in thread Naming an anonymous sub for svref_2object
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |