|Think about Loose Coupling|
Bug in ' perldoc perlvar ' ?by linuxer (Curate)
|on Feb 02, 2010 at 18:03 UTC||Need Help??|
linuxer has asked for the
wisdom of the Perl Monks concerning the following question:
I'm currently working on a translation of perlvar (into German) and wonder, if I found a bug, or not.
The paragraph for %+ (%LAST_PAREN_MATCH) starts with:
Similar to "@+", the "%+" hash allows access to the named buffers, should they exist, in the last successful match in the currently active dynamic scope.
Now I wonder, how %+ is similar to @+ (which is @LAST_MATCH_END and described in the paragraph directly before %+).
@+ is about "offsets of the ends of the last successful submatches" and %+ about accessing "named capture buffers".
How can these two things be similar? Maybe I misinterpret the "similar to" (I am not a native English speaker).
I think, if %+ is similar to another variable, then it should be $+ ($LAST_PAREN_MATCH).
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).
And now let me ask for your wisdom:
Do you also consider that a bug, or not? If I am wrong, please help me to understand that part.
Thanking you in anticipation.