Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Text file Update problem!

by chip (Curate)
on Apr 08, 2004 at 19:29 UTC ( #343719=note: print w/replies, xml ) Need Help??

in reply to Text file Update problem!

"You can't get there from here." Updating text files in place is possible, but it's basically a matter of reading a bunch in and writing it all back out again, what with variable-length records. So I guess you should just post-process the log.

    -- Chip Salzenberg, Free-Floating Agent of Chaos

Replies are listed 'Best First'.
Re: Re: Text file Update problem!
by Nik on Apr 08, 2004 at 19:54 UTC
    post proccess??
      post-process: Post, in this context means after the fact. Process, in this context means to perform operations on data. Put it together and you get "perform operations on your data after the fact."

      What he's saying is that rather than trying to write to two different places in a flat file, you might just be better off sorting it out later, when you need to look at the data. Perl's great at practical reporting and extraction of data.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://343719]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2018-06-18 21:54 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.