So these files contain email addresses or something else? In any case, you may store the line number of the last read email address in a separate file, say status.log. When the process starts, check for the existences of this file, and read the content ( may be last line or first line, depends on the way you wish to implement ), which should be the line number to start reading from.
________________________________ From: ExecMan <artme...@yahoo.com> To: beginners@perl.org Sent: Friday, April 6, 2012 2:14 AM Subject: Deleting Lines From File Hi, We have a Perl script that sends out emails. It reads a sequential file and sends out the emails. The file is big, like 500,000 lines. Sometimes this process has gone down and it is a pain to see whom we've sent to and whom we have not. Is there a way within the script to remove the addresses from the file as I am processing them? So, if the process goes down, the file is left with only the people who still need to receive the email. If not, does anyone have a good idea on how to implement something like this? Thanks! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/