good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Experimental keys on scalar is now forbiddenby haukex (Archbishop) |
on May 09, 2018 at 10:45 UTC ( [id://1214268]=note: print w/replies, xml ) | Need Help?? |
What is the right way to write it now? The "right" way to write it, or rather, the way that will work on any version of Perl 5, is:
Update: See also perlreftut, perlref, perldsc, and Experimental push on scalar now forbidden. As of Perl 5.24, you can also make use of the Postfix Dereference Syntax:
(Update 2: It's actually been present since 5.20, but it was still experimental then and had to be explicitly enabled.)
In Section
Seekers of Perl Wisdom
|
|