First up, no offence taken at all.
It would appear I'm missing something, but I don't know what it is.
I followed your link to state (in the node I responded to and again here). That's just a Super Search for the keyword 'state'. Nothing immediately useful there as far as I can see; I initially just shrugged it off as a typo, assuming you'd meant it to point to the state doco, i.e. http://perldoc.perl.org/functions/state.html. So, perhaps your link should point elsewhere - and that's the bit I'm missing.
The only other thing I can think of is that you did want $closure in
sub x1 { state $closure ... } sub x2 { state $closure ... }
to reference to same variable. Or, at least, different syntax (or something) to achieve that sort of result.
— Ken
In reply to Re^6: Experimental features: autoderef vs postfix deref
by kcott
in thread Experimental features: autoderef vs postfix deref
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |