The supported features, documented further below, are:Though running the following code under 5.24 doesn't show any effectarray_base - allow the use of $[ to change the starting index of @array autoderef - allow push, each, keys, and other built-ins on references lexical_topic - allow the use of lexical $_ via "my $_"
use strict; use warnings; use experimental 'autoderef'; BEGIN { warn "@INC\n"; warn "$]\n"; } my $a=[]; push $a,1,2,3; warn "@$a";
out
c:/Perl_524/bin/\perl.exe d:/Users/RolfLangsdorf/AppData/Roaming/pm/e +xperimental_autoderef.pl c:/Perl_524/site/lib c:/Perl_524/lib . 5.024001 Experimental push on scalar is now forbidden at d:/Users/RolfLangsdorf +/AppData/Roaming/pm/experimental_autoderef.pl line 13, near "3;" Execution of d:/Users/RolfLangsdorf/AppData/Roaming/pm/experimental_au +toderef.pl aborted due to compilation errors.
I suppose this is a bug, though I'm wondering was there ever a useful application for
use experimental 'autoderef'; ?
AFAIK autoderef never needed to be activated.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
°) strange
~/pm $ corelist experimental Data for ????-??-?? experimental was first released with perl v5.19.11
but perldoc.perl.org doesn't list experimental
I know that auto deref was deprecated, but the mention in experimental doesn't make sense, because
That's very confusing
In reply to use experimental 'autoderef'; ??? by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |