in reply to Re: efficient way to read a file in reverse
in thread efficient way to read a file in reverse
Hi Tybalt89,
Cam
Glad you enjoyed it! I omitted the first bit of the code where I do the timestamps for brevity's sake, but yes, the purpose is to look for the last 24 hours of logs for any thermal throttling messages. Thanks for the code, I think that will be quicker for me to adapt than the original File::ReadBackwards (I'll dig into 'tie filehandle' when I get a chance sometime), and there's some things new to me in your example as well which look interesting.
Cheers,Cam
In Section
Seekers of Perl Wisdom