Don't ask to ask, just ask | |
PerlMonks |
Re: multi-line in-place editsby bmann (Priest) |
on Feb 15, 2005 at 19:33 UTC ( [id://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 "{$_}"' filenameGood luck!
In Section
Seekers of Perl Wisdom
|
|