diff options
author | Brendan O'Dea <bod@debian.org> | 2003-01-12 17:18:32 +1100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-01-15 20:55:00 +0000 |
commit | cd2d1bacbf7960cece81f64bfbaaedda360c78aa (patch) | |
tree | 9b89305a7b0688cbb7725bba066c06aa965ce7e8 /pod | |
parent | 327219e7a302d8d18bdc29ddf82363d52e194d49 (diff) | |
download | perl-cd2d1bacbf7960cece81f64bfbaaedda360c78aa.tar.gz |
perlrun.pod: fix -i examples
Message-ID: <20030111191832.GA19441@londo.c47.org>
p4raw-id: //depot/perl@18489
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlrun.pod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 9360b85652..72517122a4 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<eof> without parentheses to locate the end of each input file, in case you want to append to each file, or reset line numbering |