http://www.perlmonks.org?node_id=917034


in reply to Matching two files real time

File::Tail should be a good place to start for monitoring the 2 continuously updated files, and consider using something like DBD::SQLite for the temp file. Add every row that doesn't match into the DB with a time stamp, delete or flag the row in the DB if a match turns up later. It's a fairly simple query against the DB (perhaps from a separate alerting app) to report on any rows which have a timestamp older than now - 10 minutes.