diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-10-25 11:56:12 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-10-25 12:57:22 -0700 |
commit | e1817ab9e1b3103a20f0236757fcabee412a82f7 (patch) | |
tree | 07101ab9b4485c767ee5bc238cb105e6d557b151 /pod/perldata.pod | |
parent | 82209a5d9db5f107d86440d96503ab28e816bc5e (diff) | |
download | perl-e1817ab9e1b3103a20f0236757fcabee412a82f7.tar.gz |
perldata: Document list repetition assignment
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r-- | pod/perldata.pod | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod index b0f5e7ed70..436f135050 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -718,6 +718,10 @@ function: ($dev, $ino, undef, undef, $uid, $gid) = stat($file); +As of Perl 5.22, you can also use C<(undef)x2> instead of C<undef, undef>. +(You can also do C<($x) x 2>, which is less useful, because it assigns to +the same variable twice, clobbering the first value assigned.) + List assignment in scalar context returns the number of elements produced by the expression on the right side of the assignment: |