Bug#718209: perl-base: m//p doesn't work if precompiled regex doesn't use it
Niko Tyni
ntyni at debian.org
Tue Jul 30 06:12:43 UTC 2013
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.
Hi,
your test case seems to just busy loop on wheezy/amd64,
I assume that isn't intentional?
(Haven't looked into the actual 5.18 problem yet.)
--
Niko Tyni ntyni at debian.org
More information about the Perl-maintainers
mailing list