Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: read a file twice...

by CukiMnstr (Deacon)
on Apr 15, 2002 at 06:24 UTC ( #159105=note: print w/replies, xml ) Need Help??


in reply to read a file twice...

besides the two approaches given above, you could give Tie::File by Dominus a try. It would allow you to manipulate a text file as a perl array (each file record, line per default, corresponding to an element of the array) without loading the whole file into memory, so it is specially useful for large files. Also useful when modifying files...

hope this helps,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2020-02-18 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (79 votes). Check out past polls.

    Notices?