My understanding of the description of state is as a short cut for:
{ my $state_var; sub foo { ...; } }
For that purpose, state works just fine.
I'm sorry, but I would not have expected your example to work.
In reply to Re^4: Experimental features: autoderef vs postfix deref
by RonW
in thread Experimental features: autoderef vs postfix deref
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |