in reply to Returning data from a log file

When updating the new data is written on the first or the last line of your log?

Do you have a my_log.old.gz file or my_log.1.gz file?

Any of the fields of your log is in any way a timestamp?


how do you're sure that you get no duplicates?

With this? are the lines unique? maybe you need more data:

while (@lines) { chomp; print if /\Q$pattern\E/; }