diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-02-27 13:39:03 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-02-27 13:39:03 +0000 |
commit | 9f8c97d1f6c2ccdeb40a4d71c616be05b27e52c7 (patch) | |
tree | 99bf5b8254119b10772cbd9a89d14038f1a6f2fe | |
parent | 7b47f51168e9809f5d382d1665487f501a3abc60 (diff) | |
download | perl-9f8c97d1f6c2ccdeb40a4d71c616be05b27e52c7.tar.gz |
dmq points out that %+ and %- are not arrays. Fix the doc.
p4raw-id: //depot/perl@30417
-rw-r--r-- | ext/re/lib/re/Tie/Hash/NamedCapture.pm | 6 |
1 files 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 7363491f94..75bf1aa92e 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<undef> 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<all> 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 |