K
kejoseph
Hi,
I need to read a file in Perl backwards but -
I have read tips about reading the file into an array and then reading
the array in the reverse. Now, bearing in mind the fact that the log
files I will be reading will be anywhere from 10-100mb, I dont think
this is a very good idea.
I have also read about using Perl modules like FileBackwards or
File::Tie.
I do not want either of the above. I need to know whether there is a
way to read it backwards without having to use any of the above. In
other words read a file backwards using "shrink-wrapped" Perl.
Do let me know if there is any such way.
Thanks,
Kevin.
I need to read a file in Perl backwards but -
I have read tips about reading the file into an array and then reading
the array in the reverse. Now, bearing in mind the fact that the log
files I will be reading will be anywhere from 10-100mb, I dont think
this is a very good idea.
I have also read about using Perl modules like FileBackwards or
File::Tie.
I do not want either of the above. I need to know whether there is a
way to read it backwards without having to use any of the above. In
other words read a file backwards using "shrink-wrapped" Perl.
Do let me know if there is any such way.
Thanks,
Kevin.