From: John Stumbles Date: Mon, 21 Jan 2002 14:19:56 +0000 (+0000) Subject: [ID 20020121.003] perldata doco bug X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88fd19e345bb4a13d93eb0557302a9d5ee94e665;p=p5sagit%2Fp5-mst-13.2.git [ID 20020121.003] perldata doco bug Message-Id: <4586CA8FDDC2D411A1C700508BB4AC33016765D1@ukexchange.synaxia.com> p4raw-id: //depot/perl@14386 --- diff --git a/pod/perldata.pod b/pod/perldata.pod index f2484db..9478cc8 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -636,7 +636,7 @@ The previous assignments are exactly equivalent to ($days[3], $days[4], $days[5]) = qw/Wed Thu Fri/; ($colors{'red'}, $colors{'blue'}, $colors{'green'}) = (0xff0000, 0x0000ff, 0x00ff00); - ($folks[0], $folks[-1]) = ($folks[0], $folks[-1]); + ($folks[0], $folks[-1]) = ($folks[-1], $folks[0]); Since changing a slice changes the original array or hash that it's slicing, a C construct will alter some--or even all--of the