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:
Any thoughts on this? Thanks.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 }
Back to
Seekers of Perl Wisdom