This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldata - More specific about assignment restriction of key/value slices
authorDan Book <grinnz@grinnz.com>
Sat, 11 Apr 2020 05:55:05 +0000 (01:55 -0400)
committerKarl Williamson <khw@cpan.org>
Sat, 11 Apr 2020 14:04:03 +0000 (08:04 -0600)
pod/perldata.pod

index 2ab5568..b50f817 100644 (file)
@@ -1081,8 +1081,8 @@ returning a list of key/value pairs rather than just values:
     # %removed is now (foo => 3, bar => 8)
     # %h is now (blonk => 2, squink => 5)
 
-However, the result of such a slice cannot be localized or used
-in assignment.  These are otherwise very much consistent with hash slices
+However, the result of such a slice cannot be localized or assigned to.
+These are otherwise very much consistent with hash slices
 using the @ symbol.
 
 =head3 Index/Value Array Slices