summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-02-20 09:14:20 +0100
committerYves Orton <demerphq@gmail.com>2023-02-20 18:02:04 +0800
commit0f2b2db7283cc9e7d03439c5cc73d3e9cadd54b4 (patch)
treef8f788b56717aadf7e8dedb336b5096dd58bd88e /pod
parentfc11df3e7c474d125032d885d145d03146621204 (diff)
downloadperl-0f2b2db7283cc9e7d03439c5cc73d3e9cadd54b4.tar.gz
perldelta.pod - note that REG_INF has been raised
It used to be U16_MAX and it is now I32_MAX.
Diffstat (limited to 'pod')
-rw-r--r--pod/perldelta.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 340766c989..1cead33eb7 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -55,6 +55,13 @@ C<no warnings> statement.
use feature 'class';
no warnings 'experimental::class';
+=head2 REG_INF has been raised from 65,536 to 2,147,483,647
+
+Many regex quantifiers used to be limited to U16_MAX in the past, but are
+now limited to I32_MAX, thus it is now possible to write /(?:word){1000000}/
+for example. Note that doing so may cause the regex engine to run longer
+and use more memory.
+
=head1 Security
XXX Any security-related notices go here. In particular, any security