in reply to
multi-line in-place edits
perl -n0777i.bak -e 'print "{$_}"' filename.txt
[download]
The 0777 option does the same thing as the BEGIN that others are suggesting. See
perldoc perlrun
.
Caution:
Contents may have been coded under pressure.
Comment on
Re: multi-line in-place edits
Select
or
Download
Code
In Section
Seekers of Perl Wisdom