As far as only opening the file once, you can try opening it for both reading and writing (+<)print FILE $LINE unless ($array[0] eq "$erasethese[0]" || $array[0] eq + "$erasethese[1]" );
In reply to Re: Clearing lines in a file based on an array containing the lines
by ramrod
in thread Clearing lines in a file based on an array containing the lines
by rycher
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |