From: Brendan O'Dea Date: Sun, 12 Jan 2003 06:18:32 +0000 (+1100) Subject: perlrun.pod: fix -i examples X-Git-Tag: accepted/trunk/20130322.191538~24962 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd2d1bacbf7960cece81f64bfbaaedda360c78aa;p=platform%2Fupstream%2Fperl.git perlrun.pod: fix -i examples Message-ID: <20030111191832.GA19441@londo.c47.org> p4raw-id: //depot/perl@18489 --- diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 9360b85..7251712 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -448,9 +448,9 @@ output filehandle after the loop. 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 without parentheses to locate the end of each input file, in case you want to append to each file, or reset line numbering