summaryrefslogtreecommitdiff
path: root/pod/perlrun.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r--pod/perlrun.pod4
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod
index e730530f65..be366f8afd 100644
--- a/pod/perlrun.pod
+++ b/pod/perlrun.pod
@@ -533,6 +533,10 @@ folks use it for their backup files:
$ perl -pi~ -e 's/foo/bar/' file1 file2 file3...
+Note that because B<-i> renames or deletes the original file before
+creating a new file of the same name, UNIX-style hard links will not be
+preserved.
+
Finally, the B<-i> switch does not impede execution when no
files are given on the command line. In this case, no backup is made
(the original file cannot, of course, be determined) and processing