A few more things:
can be reduced to:if ($TheLine =~ /<RD>[^\n]*Status Compendium<<.JL>/i) { $ListPos = 0; until($ListPos > $#WordList) { if ($TheLine eq $WordList[$ListPos]) { $TheLine = ""; pop(@WordList) } $ListPos +=1 } } print OUTPUT "$TheLine";
if ($TheLine =~ /<RD>[^\n]*Status Compendium<<.JL>/i) { for(my $i=0; $i > @WordList; $i++) { print OUTPUT $TheLine if ($TheLine ne $WordList[$i]) } }
Sorry for being nitpicky, but I felt the urge :) Good Luck!
In reply to Re: Remove a line of text
by jryan
in thread Remove a line of text
by Larry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |