|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: multi-line in-place editsby bmann (Priest) |
| on Feb 15, 2005 at 19:33 UTC ( #431303=note: print w/ replies, xml ) | Need Help?? |
|
I thought this could be solved with something like -l0666,
Take a look at perlrun, -0777 will slurp the entire file. Here's a working one-liner:
perl -i.bak -0777 -ne 'print "{$_}"' filename
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||