Skip to content

Commit 93d6320

Browse files
committed
perlref: Add example of lhs postfix deref
Fixes #22130
1 parent b9168b0 commit 93d6320

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pod/perlref.pod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,8 @@ For example:
732732
$r = [ 1, [ 2, 3 ], 4 ];
733733
$r->[1]->@*; # equivalent to @{ $r->[1] }
734734

735+
$aref->@* = (1, 2, 3); # same as @{ $aref } = (1, 2, 3)
736+
735737
In Perl 5.20 and 5.22, this syntax must be enabled with C<use feature
736738
'postderef'>. As of Perl 5.24, no feature declarations are required to make
737739
it available.

0 commit comments

Comments
 (0)