<?xml version="1.0" encoding="windows-1252"?>
<node id="820991" title="Bug in ' perldoc perlvar ' ?" created="2010-02-02 13:03:58" updated="2010-02-02 13:03:58">
<type id="115">
perlquestion</type>
<author id="590906">
linuxer</author>
<data>
<field name="doctext">
&lt;p&gt;Hi,

&lt;p&gt;I'm currently working on a translation of [doc://perlvar] (into German) and wonder, if I found a bug, or not.

&lt;p&gt;The paragraph for &lt;c&gt;%+&lt;/c&gt; (&lt;c&gt;%LAST_PAREN_MATCH&lt;/c&gt;) starts with:

&lt;blockquote&gt;Similar to "@+", the "%+" hash allows access to the named buffers, should they exist, in the last successful match in the currently active dynamic scope.
&lt;/blockquote&gt;

&lt;p&gt;Now I wonder, how &lt;c&gt;%+&lt;/c&gt; is similar to &lt;c&gt;@+&lt;/c&gt; (which is &lt;c&gt;@LAST_MATCH_END&lt;/c&gt; and described in the paragraph directly before &lt;c&gt;%+&lt;/c&gt;).
&lt;p&gt;&lt;c&gt;@+&lt;/c&gt; is about &lt;i&gt;"offsets of the ends of the last successful submatches"&lt;/i&gt; and &lt;c&gt;%+&lt;/c&gt; about accessing &lt;i&gt;"named capture buffers"&lt;/i&gt;.
&lt;p&gt;How can these two things be similar? Maybe I misinterpret the "similar to" (I am not a native English speaker).

&lt;p&gt;I think, if &lt;c&gt;%+&lt;/c&gt; is similar to another variable, then it should be &lt;c&gt;$+&lt;/c&gt; (&lt;c&gt;$LAST_PAREN_MATCH&lt;/c&gt;).

&lt;p&gt;I checked the perldoc of 5.10.0 and 5.10.1. Both contain this bug (The feature of named capture buffers was introduced with 5.10.0).

&lt;p&gt;And now let me ask for your wisdom: 

&lt;p&gt;Do you also consider that a bug, or not? If I am wrong, please help me to understand that part.

&lt;p&gt;Thanking you in anticipation.</field>
</data>
</node>
