--On Saturday, September 06, 2003 7:45 PM -0400 perlwannabe <[EMAIL PROTECTED]> wrote:
OK, I have a new problem. I need to delete an entire line that contains certain text. I have done an extensive search and had no luck finding an adequate answer. Yes, I also saw the FAQ that just refers me to Tie::file. The most promising solution was:
perl -ni.bak -e 'print unless /FOO/;' input.txt
but when I run that line from the c:\ I get the following error:
Can't find string terminator "'" anywhere before EOF at -e line 1.
Windows is weird that way. Use double-quotes instead of single-quotes.
Also, I would like to run this from within a script instead of from the command line.
BTW...using PERL 5.8.0 on Windows2000 Pro
Take a look at 'perldoc perlrun' -- it explains how all the command-line options work and give equivalent code.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]