diff options
author | Tony Cook <tony@develop-help.com> | 2018-11-26 14:21:13 +1100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2019-04-04 13:23:20 +0100 |
commit | e66431149b5d14f80a9be48d7fec18a03c67601d (patch) | |
tree | 0beca2ae8ee6bc68074a3f6b05da3009ec5ded3f | |
parent | a4c8b6b67dc8a5ef3c7c49e84b78c39253e4e8d2 (diff) | |
download | perl-e66431149b5d14f80a9be48d7fec18a03c67601d.tar.gz |
perldelta for 404395d24bc8, 640e129d0fc4 and 85d2f7cacba4
(cherry picked from commit 20ccb10a08f448e264358925aacec1e2d05c6402)
-rw-r--r-- | pod/perldelta.pod | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index a534f36fa8..469e3160bc 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -363,7 +363,20 @@ files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>. =item * -XXX +If an in-place edit is still in progress during global destruction and +the process exit code (as stored in C<$?>) is zero, perl will now +treat the in-place edit as successful, replacing the input file with +any output produced. + +This allows code like: + + perl -i -ne 'print "Foo"; last' + +to replace the input file, while code like: + + perl -i -ne 'print "Foo"; die' + +will not. Partly resolves [perl #133659]. =back |