http://qs1969.pair.com?node_id=540635

perlknight has asked for the wisdom of the Perl Monks concerning the following question:

I want to log ftp log into mysql db, one gotcha which I need help in in how to keep track of which line I was at so that the next iteration will skip. I am thinking of something like this:
if new file { read all lines and insert into db. current_line is the last line } else if not new file { go to current_line read all new lines and insert into db }
Any thoughts on this? Thanks.