in reply to Re^7: Experimental features: autoderef vs postfix deref
in thread Experimental features: autoderef vs postfix deref
Having a background in C, I use "static" variables a lot. So, to me, Perl's "state" variables are the same thing.
(Also, I think it makes the usage clearer to the code reviewers and potential future code maintainers.)
(When I have real use case for a closure, I will code it that way. If it's just to "simulate" a "static" variable, I would rather use "state".)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Experimental features: autoderef vs postfix deref
by golux (Chaplain) on Jul 14, 2015 at 18:01 UTC |