Change 18489 by rgs@rgs-home on 2003/01/15 20:55:00
Subject: [PATCH 5.8.0] perlrun.pod: fix -i examples
From: Brendan O'Dea <[EMAIL PROTECTED]>
Date: Sun, 12 Jan 2003 06:18:32 +1100
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/pod/perlrun.pod#68 edit
Differences ...
==== //depot/perl/pod/perlrun.pod#68 (text) ====
Index: perl/pod/perlrun.pod
--- perl/pod/perlrun.pod#67~17920~ Thu Sep 26 01:16:43 2002
+++ perl/pod/perlrun.pod Wed Jan 15 12:55:00 2003
@@ -448,9 +448,9 @@
As shown above, Perl creates the backup file whether or not any output
is actually changed. So this is just a fancy way to copy files:
- $ perl -p -i '/some/file/path/*' -e 1 file1 file2 file3...
+ $ perl -p -i'/some/file/path/*' -e 1 file1 file2 file3...
or
- $ perl -p -i '.orig' -e 1 file1 file2 file3...
+ $ perl -p -i'.orig' -e 1 file1 file2 file3...
You can use C<eof> without parentheses to locate the end of each input
file, in case you want to append to each file, or reset line numbering
End of Patch.