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

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

Thread Next
From:
Hugo van der Sanden via RT
Date:
June 13, 2019 10:46
Subject:
[perl #134193] Accessing @{^CAPTURE} before %{^CAPTURE} empties thelatter
Message ID:
rt-4.0.24-5250-1560422787-269.134193-15-0@perl.org
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.

Hugo

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=134193

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About