|
So do a:
foreach $line (<file>) {
$line =~ s/thing to remove//g;
}
of you can open() a file, and create a new file. Print each line, from one file to another, unless that line doesn't belong there. Then you can delete the orginal file, and rename it to whatever it should be.
That's the jist of it. Unless you give me some example data to process, and what I should be removing, I can't really code anything. So you're on your own without more specifications...
|