>>>>> "Jenda" == Jenda Krynicky < Jenda%40Krynicky.cz">Jenda
Krynicky.cz> writes:
Jenda> perl -pi.bak -e "$_ = '' if /ignorestring/" sourcefile
I find
perl -ni.bak -e 'print unless /ignorestring/" sourcefile
saner to read. Somehow, the idea of "print ''" seems wasteful,
and potentially dangerous if "-l" is involved.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
< merlyn%40stonehenge.com">merlyn
stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
.