in reply to reverse filereading?
Perhaps the module File::ReadBackwards, will be something worth looking into for your problem.