This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Only output warning about experimental once
authorKarl Williamson <khw@cpan.org>
Tue, 18 Feb 2020 02:25:04 +0000 (19:25 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 20 Feb 2020 01:18:40 +0000 (18:18 -0700)
commit5aabce3312a076a54917797ee962745844c6558a
treec625029f3dde1018dbe97ff6ba9e91f0122c82e6
parentd8d1dede53afc4f33cf63203b0992459fe964dc3
regcomp.c: Only output warning about experimental once

If someone uses an experimental construct, prior to this commit, they
would get a warning each time they used it in the same pattern.  This
commit causes the warning to be emitted once per pattern.

I didn't add tests, because this I didn't think it important enough to
spend the time.  The consequences of this breaking in the future are
minimal, and the constructs are temporary, likely to be removed next
release.
regcomp.c