summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2018-11-26 14:21:13 +1100
committerTony Cook <tony@develop-help.com>2018-11-26 14:21:13 +1100
commit20ccb10a08f448e264358925aacec1e2d05c6402 (patch)
tree2bc3c25236f339a9b5532e5eec863b01e426b70e
parent85d2f7cacba4b0088ae0c67cc6d4c9b7495355c0 (diff)
downloadperl-20ccb10a08f448e264358925aacec1e2d05c6402.tar.gz
perldelta for 404395d24bc8, 640e129d0fc4 and 85d2f7cacba4
-rw-r--r--pod/perldelta.pod15
1 files changed, 14 insertions, 1 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 4cb6afba6c..18e2e17856 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