diff options
author | Yves Orton <demerphq@gmail.com> | 2023-03-18 13:13:16 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-19 05:27:01 +0800 |
commit | 0d5b46c9e4cecc121ba79df380cde0ae037d16f7 (patch) | |
tree | 845d874db1b7396f73dd1f6f812ceb0c7f133ead /pod | |
parent | ee28315c4f7ca8c3a906dd002aa63bdc067c3425 (diff) | |
download | perl-0d5b46c9e4cecc121ba79df380cde0ae037d16f7.tar.gz |
regcomp.c - throw an error if we have more U16_MAX open parens.
We use U16 for various internal logic related to parens. If we
exceed this count stuff is going to go silently wrong. Might as
well throw a proper error during compilation to detect this.
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 3bf01ce41f..38aa9c550a 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -6602,6 +6602,11 @@ If you know that you have good reason to exceed the limit you can change it by setting C<${^MAX_NESTED_EVAL_BEGIN_BLOCKS}> to a different value from the default of 1000. +=item Too many capture groups (limit is %d) in regex m/%s/ + +(F) You have too many capture groups in your regex pattern. You need to rework +your pattern to use less capture groups. + =item Too many )'s (A) You've accidentally run your script through B<csh> instead of Perl. |