note
bart
You can get a list of the files this way:
<c>
chdir $logdir;
@files = glob 'audit_*_010000.csv';
</c>
They probably should be in sorted order, but if occasionally that's not the case, you can do:
<c>
@files = sort glob 'audit_*_010000.csv';
</c>
Now <c>files[-1]</c> will be the name of the most recent file and <c>$files[-2]</c> the one of the previous file, assuming <c>@files >= 2</c>. So now, you can compare them.
1002028
1002028