Subject: | Don't stop perl on: Quantifier in {,} bigger than 32766 in regex |
Date: | Wed, 22 Apr 2020 13:43:28 +0200 |
To: | bug-PPR [...] rt.cpan.org |
From: | Albert <albert.tests [...] gmail.com> |
Based on my question on stackoverflow (
https://stackoverflow.com/questions/61363512/dont-stop-perl-on-quantifier-in-bigger-than-32766-in-regex
):
In the question
https://stackoverflow.com/questions/61307663/retain-newlines-for-pod-in-case-of-ppruncomment
and this was solved in the answer, by defining a a new method `decomment2`
that leaves the newlines properly. All works quite well, but now I have a
file to process with a very big HERE document (far to big to publish here
so unfortunately a link to an external site):
https://github.com/openssl/openssl/blob/master/crypto/bn/asm/ppc.pl
When this file is processed through the `PPR::decomment2` I get the message:
```
Quantifier in {,} bigger than 32766 in regex; marked by <-- HERE in
m/(?s:.{ <-- HERE 39303})/ at
/home/User/perl5/lib/perl5/Doxygen/Filter/Perl.pm line 1222.
```
this line 1222 is the line `$str =~ m{ \A (?&PerlDocument) \Z` in the
`PPR::decomment2` method`.
At that moment the perl process terminates.
- is there a way to enlarge this "32766" i.e 2**15-2 in some way?
- is there a way not to terminate the perl process but set the `PPR::ERROR`
or another flag, so this can be processed in the code?
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>