From: Rafael Garcia-Suarez Date: Tue, 27 Feb 2007 13:39:03 +0000 (+0000) Subject: dmq points out that %+ and %- are not arrays. Fix the doc. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9f8c97d1f6c2ccdeb40a4d71c616be05b27e52c7;p=p5sagit%2Fp5-mst-13.2.git dmq points out that %+ and %- are not arrays. Fix the doc. p4raw-id: //depot/perl@30417 --- diff --git a/ext/re/lib/re/Tie/Hash/NamedCapture.pm b/ext/re/lib/re/Tie/Hash/NamedCapture.pm index 7363491..75bf1aa 100644 --- a/ext/re/lib/re/Tie/Hash/NamedCapture.pm +++ b/ext/re/lib/re/Tie/Hash/NamedCapture.pm @@ -92,12 +92,12 @@ array refs listing the contents of each capture buffer whose name is the same as the associated hash key. If none of these buffers were involved in the match, the contents of that array ref will be as many C values as there are capture buffers with that name. In other words, the tied hash -will behave as the C<%-> array. +will behave as C<%->. When the C parameter is omitted or false, then the tied hash elements will be the contents of the leftmost defined buffer with the name of the -associated hash key. In other words, the tied hash will behave as the -C<%+> array. +associated hash key. In other words, the tied hash will behave as +C<%+>. The keys of C<%->-like hashes correspond to all buffer names found in the regular expression; the keys of C<%+>-like hashes list only the names of