diff options
author | Eugen Konkov <kes-kes@yandex.ru> | 2018-11-29 10:56:07 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-11-29 10:59:39 -0700 |
commit | f32e286a94381a66b7325ec68e1c6f1eb3872277 (patch) | |
tree | 571c3df1cc37c3cf7e5769aa96e214f821e40dfa | |
parent | 31f5ea5a6c30d7fec142332a93a800d4f190e56d (diff) | |
download | perl-f32e286a94381a66b7325ec68e1c6f1eb3872277.tar.gz |
More removals of $a,$b in perldata for [#perl #133700]
-rw-r--r-- | pod/perldata.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod index 2aecb83b7f..2ab55687a2 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -775,7 +775,7 @@ put the list in parentheses to avoid ambiguity. For example: Lists may be assigned to only when each element of the list is itself legal to assign to: - ($a, $b, $c) = (1, 2, 3); + ($x, $y, $z) = (1, 2, 3); ($map{'red'}, $map{'blue'}, $map{'green'}) = (0x00f, 0x0f0, 0xf00); @@ -868,8 +868,8 @@ only return true or false, rather than a count of matches. The final element of a list assignment may be an array or a hash: - ($a, $b, @rest) = split; - my($a, $b, %rest) = @_; + ($x, $y, @rest) = split; + my($x, $y, %rest) = @_; You can actually put an array or hash anywhere in the list, but the first one in the list will soak up all the values, and anything after it will become |