summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2015-07-13 12:58:51 +0100
committerAaron Crane <arc@cpan.org>2015-07-13 13:42:01 +0100
commit1c2511e0acc5a19f9f52fb2be58a4e2750213e6f (patch)
tree0ddb6e3d668f6fae267867032bcea8fc9d51516e /pod
parent41349288283615495b6de1523783d60c9fd7310b (diff)
downloadperl-1c2511e0acc5a19f9f52fb2be58a4e2750213e6f.tar.gz
Make postfix dereferencing work without the postderef feature
The feature still exists, for compatibility with code that tries to enable it, but it has no effect. The postderef_qq feature still exists, however.
Diffstat (limited to 'pod')
-rw-r--r--pod/perldelta.pod9
-rw-r--r--pod/perlref.pod8
2 files changed, 11 insertions, 6 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index ce8768b285..ae26fbb327 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -52,9 +52,12 @@ you could use the C<bigint> pragma.
=head2 Postfix dereferencing is no longer experimental
-Using the C<postderef> and C<postderef_qq> features no longer emits a warning.
-Existing code that disables that warning category will continue to work. The
-C<5.24> feature bundle now includes those features.
+Using the C<postderef> and C<postderef_qq> features no longer emits a
+warning. Existing code that disables the C<experimental::postderef> warning
+category that they previously used will continue to work. The C<postderef>
+feature has no effect; all Perl code can use postfix dereferencing,
+regardless of what feature declarations are in scope. The C<5.24> feature
+bundle now includes the C<postderef_qq> feature.
=head1 Security
diff --git a/pod/perlref.pod b/pod/perlref.pod
index 8956be5750..e570b72cd3 100644
--- a/pod/perlref.pod
+++ b/pod/perlref.pod
@@ -758,7 +758,9 @@ For example:
$r = [ 1, [ 2, 3 ], 4 ];
$r->[1]->@*; # equivalent to @{ $r->[1] }
-This syntax must be enabled with C<use feature 'postderef'>.
+In Perl 5.20 and 5.22, this syntax must be enabled with C<use feature
+'postderef'>. As of Perl 5.24, no feature declarations are required to make
+it available.
Postfix dereference should work in all circumstances where block
(circumfix) dereference worked, and should be entirely equivalent. This
@@ -781,7 +783,7 @@ Glob elements can be extracted through the postfix dereferencing feature:
Postfix array and scalar dereferencing I<can> be used in interpolating
strings (double quotes or the C<qq> operator), but only if the
-additional C<postderef_qq> feature is enabled.
+C<postderef_qq> feature is enabled.
=head2 Postfix Reference Slicing
@@ -800,7 +802,7 @@ Slices">, also behaves as expected:
As with postfix array, postfix value slice dereferencing I<can> be used
in interpolating strings (double quotes or the C<qq> operator), but only
-if the additional C<postderef_qq> L<feature> is enabled.
+if the C<postderef_qq> L<feature> is enabled.
=head1 Assigning to References