Skip to content

Commit

Permalink
Perldelta for GH#22785, OP_SUBSTR_LEFT
Browse files Browse the repository at this point in the history
  • Loading branch information
richardleach committed Jan 14, 2025
1 parent 6197847 commit 04d2e69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pod/perldelta.pod
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ There may well be none in a stable release.

=item *

The peephole optimizer recognises the following zero-offset C<substr>
patterns and swaps in a new dedicated operator (C<OP_SUBSTR_LEFT>).
[GH #22785]

substr($x, 0, ...)
substr($x, 0, ..., '')

=item *

XXX

=back
Expand Down

0 comments on commit 04d2e69

Please sign in to comment.