Bug#718209: perl-base: m//p doesn't work if precompiled regex doesn't use it
Niko Tyni
ntyni at debian.org
Wed Jul 31 05:46:46 UTC 2013
forwarded 718209 https://rt.perl.org/rt3/Public/Bug/Display.html?id=118213
tag 718209 fixed-upstream
thanks
On Sun, Jul 28, 2013 at 07:04:36PM +0000, brian m. carlson wrote:
> Package: perl-base
> Version: 5.18.0-3
> Severity: normal
> File: /usr/bin/perl
>
> If a regex is precompiled with qr//, but without /p, and then used in
> $text =~ /$pat/p, the ${^POSTMATCH} variable is undefined. If I use
> qr//p instead, everything works fine. This did work in Perl 5.14, so I
> expect that despite the bad style, it should work in Perl 5.18.
>
> The attached test case will die in Perl 5.18.
Looks like [perl #118213], preliminary 5.18 fix is at
http://perl5.git.perl.org/perl.git/shortlog/refs/heads/davem/maint-5.18-118213
--
Niko Tyni ntyni at debian.org
More information about the Perl-maintainers
mailing list