Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: end of file!

by autark (Friar)
on Jul 26, 2000 at 16:34 UTC ( #24472=note: print w/replies, xml ) Need Help??


in reply to RE: Re: end of file!
in thread end of file!

Indeed, there is a module called File::ReadBackwards available through CPAN. From the description in the man file:
This module reads a file backwards line by line. 
It is simple to use, memory efficient and fast. 
It supports both an object and a tied handle interface. 

It is intended for processing log and other similar text 
files which typically have their newest entries appended 
to them. By default files are assumed to be plain text and
have a line ending appropriate to the OS. But you can set
the input record separator string on a per file basis. 
Autark.

Replies are listed 'Best First'.
RE: Re: end of file!
by vnpandey (Scribe) on Jul 26, 2000 at 18:11 UTC
    Thanks..I wanted exactly similar stuff. Also the comments of c-era,fundflow are quite helpful.thanks to you too!! & all the monks for their replies..-vnpandey

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://24472]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-12-01 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (10 votes). Check out past polls.

    Notices?