That's just obfuscated syntax for
sub test { $::test{localsub} = sub { print 'localsub1'; return 12345; } unless exists $::test{localsub}; $::test{localsub}->(); }
and implies all the usual ramifications of global variable use.
Makeshifts last the longest.
In reply to Re^2: Is it possible to create a sub exclusive to a sub?
by Aristotle
in thread Is it possible to create a sub exclusive to a sub?
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |