Commit e6834caf9c for perl
commit e6834caf9cf0c26e07700bca66b206456922b1fa
Author: Alin Iacob <alinbsp@gmail.com>
Date: Sat Oct 3 11:22:12 2026 +0300
perldelta for UTF-8 substr caching fix
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index d04e2da885..6206d81138 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -105,6 +105,11 @@ variable-length sub-patterns, such as C<(a|bc)*> and C<(ab+){2,}>. This
change may reduce the amount of backtracking that takes place, and may
reduce the amount of temporary memory used for the cache.
+=item *
+
+C<substr()> now updates the UTF-8 position cache correctly, avoiding
+repeated scans when accessing the same part of a string. [GH #24531]
+
=back
=head1 Modules and Pragmata