This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
For s///r, avoid copying the source early only to edit it in place.
authorNicholas Clark <nick@ccl4.org>
Fri, 17 Jun 2011 14:40:30 +0000 (16:40 +0200)
committerNicholas Clark <nick@ccl4.org>
Thu, 23 Jun 2011 08:22:13 +0000 (10:22 +0200)
commit8ca8a454f60a417f5040d6e3e47673333702f58d
treeeff5d0d46490c02817e88b95e66f0beaf0a9b2a1
parent7c4202907c499a6fd1a41da6fdf1d414ecadeb37
For s///r, avoid copying the source early only to edit it in place.

Instead, take advantage of the "can't edit in place" code path of pp_subst
which writes to a new scalar, and that pp_substcont always leaves the original
intact, writing to a new scalar.
pod/perldelta.pod
pp_ctl.c
pp_hot.c