develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134193] Accessing @{^CAPTURE} before %{^CAPTURE} empties thelatter

Thread Next
Hugo van der Sanden via RT
June 13, 2019 10:46
[perl #134193] Accessing @{^CAPTURE} before %{^CAPTURE} empties thelatter
Message ID:
On Wed, 12 Jun 2019 17:22:33 -0700, tonyc wrote:
> The attached fixes it (applies on top of the 131867 fix).

Can you explain why the similar code for *+ and *- is not similarly wrong? That might be worth a comment in the code too: it looks like this bug started as essentially a copy of that code.

It would also be worth swapping the '+' and '-' arguments in the two 
require_tie_mod_s() calls, as Hauke also noted - if anyone ever sees it, it'll be a confusing-enough error message without being confusing for the wrong reason.


via perlbug:  queue: perl5 status: open

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About