Perl Monk, Perl Meditation | |
PerlMonks |
Re: Clearing lines in a file based on an array containing the linesby ramrod (Curate) |
on Apr 22, 2009 at 20:27 UTC ( [id://759396]=note: print w/replies, xml ) | Need Help?? |
You can eliminate the second "grooming" by comparing against your elements at the same time:
As far as only opening the file once, you can try opening it for both reading and writing (+<)
In Section
Seekers of Perl Wisdom
|
|