We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e20b302 commit 9c0e0ccCopy full SHA for 9c0e0cc
1 file changed
pod/perldelta.pod
@@ -99,6 +99,18 @@ There may well be none in a stable release.
99
100
=item *
101
102
+Counting the number of matches within a string using the following common
103
+idiom is now more streamlined.
104
+
105
+ C<my $count =()= $str =~ /$pat/g;>
106
107
+Instead of pushing all matches to the stack in mortal SVs just so that
108
+the list assignment can count them, C<pp_match> maintains an internal
109
+count during matching and pushes only that at the completion of matching.
110
+[GH #24558]
111
112
+=item *
113
114
XXX
115
116
=back
0 commit comments