Joshua Scott wrote: > > I'm very new to Perl programming so please bear with me. I'm working on a > program that will open up a certain logfile, read the contents, upload > certain content to a database and update the status to the same database. > > The goal is to run this program once a week. Currently the program just > uploads all matching selections from the file every time it is run. My > query to this group is what is the best way to code this such that I only > get the data that has changed from the last time the logfile was read. > > I realize that this may be a generic request, but I just want to get some > ideas for this before I dive in and try to do it myself.
One way would be to cache the last line read and the next time you read the file loop until that line is encountered and only process the lines after it. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]