"be consistent" | |
PerlMonks |
Re: Improve readability of Perl code. Naming reference variables. [New Perl Feature]by kcott (Archbishop) |
on Jan 22, 2017 at 22:33 UTC ( [id://1180130]=note: print w/replies, xml ) | Need Help?? |
There's a new feature that appeared in "developer release 5.25.3". It's mentioned in "(5.25.3) perldelta: Declaring a reference to a variable". Details are in "(5.25.3) perlref: Declaring a Reference to a Variable". The text of that last link starts with "Beginning in v5.26.0, ...": so, if you don't want to install a developer version (the latest is 5.25.9), you probably won't have long to wait for a stable one. I think this is the sort of thing you were after:
Sample run:
Important: Do note that this feature is experimental; subject to change; and, as such, not suitable for production code. — Ken
In Section
Meditations
|
|