diff options
author | Zakariyya Mughal <zmughal@cpan.org> | 2022-08-05 18:35:41 -0400 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-11-30 08:50:17 -0700 |
commit | 365f3e0f038557f283dc48f11d9dd1d2eb0dfb8b (patch) | |
tree | ce1d903188b5b9e580ade446cca22ec6c2eda58d /lib | |
parent | e5bd4888f2823c6f843015bcfba22dfb08891dc9 (diff) | |
download | perl-365f3e0f038557f283dc48f11d9dd1d2eb0dfb8b.tar.gz |
Document postderef_qq support for ->$#* interpolation
This was added in commit <https://github.com/Perl/perl5/commit/ff25e5dbbad6ccf83f2e2a874a3c90294ea8cb47>.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/feature.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/feature.pm b/lib/feature.pm index 884712467e..3f8f89dadb 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -272,9 +272,10 @@ regardless of what feature declarations are in scope. =head2 The 'postderef' and 'postderef_qq' features The 'postderef_qq' feature extends the applicability of L<postfix -dereference syntax|perlref/Postfix Dereference Syntax> so that postfix array -and scalar dereference are available in double-quotish interpolations. For -example, it makes the following two statements equivalent: +dereference syntax|perlref/Postfix Dereference Syntax> so that +postfix array dereference, postfix scalar dereference, and +postfix array highest index access are available in double-quotish interpolations. +For example, it makes the following two statements equivalent: my $s = "[@{ $h->{a} }]"; my $s = "[$h->{a}->@*]"; |