From 9f8c97d1f6c2ccdeb40a4d71c616be05b27e52c7 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 27 Feb 2007 13:39:03 +0000 Subject: [PATCH] dmq points out that %+ and %- are not arrays. Fix the doc. p4raw-id: //depot/perl@30417 --- ext/re/lib/re/Tie/Hash/NamedCapture.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.7.4