Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: search and replace on a line by line basisby pizza_milkshake (Monk) |
on Apr 15, 2004 at 17:39 UTC ( [id://345468]=note: print w/replies, xml ) | Need Help?? |
that assumes that all lines in the file are of the format he describes. your example will pass through blank lines, for example. i believe he wants anything that is invalid filtered.
perl -e'$_="nwdd\x7F^n\x7Flm{{llql0}qs\x14";s/./chr(ord$&^30)/ge;print'
In Section
Seekers of Perl Wisdom
|
|