From f32e286a94381a66b7325ec68e1c6f1eb3872277 Mon Sep 17 00:00:00 2001 From: Eugen Konkov Date: Thu, 29 Nov 2018 10:56:07 -0700 Subject: More removals of $a,$b in perldata for [#perl #133700] --- pod/perldata.pod | 6 +++--- 1 file 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 -- cgit v1.2.1