LanX has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use experimental 'autoderef'; ???
by Haarg (Priest) on Jun 29, 2017 at 05:16 UTC | |
|
Re: use experimental 'autoderef'; ???
by choroba (Cardinal) on Jun 29, 2017 at 09:55 UTC | |
|
Re: use experimental 'autoderef'; ???
by stevieb (Canon) on Jun 29, 2017 at 00:08 UTC | |
by Eily (Monsignor) on Jun 29, 2017 at 09:46 UTC | |
by tobyink (Canon) on Jun 29, 2017 at 05:44 UTC | |
|
Re: use experimental 'autoderef'; ???
by fishmonger (Chaplain) on Jun 29, 2017 at 00:21 UTC |