Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Processing text file in reverse-order linewise

by ikegami (Patriarch)
on Aug 14, 2006 at 23:33 UTC ( [id://567365]=note: print w/replies, xml ) Need Help??


in reply to Processing text file in reverse-order linewise

Tie::File reads the file from the front, memorizing the position of the lines within the file. Tie::File is therefore really fast at random access, but uses up a log of memory if you're just going to read the file from the end.

File::ReadBackwards really does read the file from the end, using a minimal amount of memory.

  • Comment on Re: Processing text file in reverse-order linewise

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-26 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found