Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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]
[thezip]: I don't intend on doing any offline development in the Czech Republic soon, so i think I'm safe!
[thezip]: :-)
[choroba]: Yeah, there are countries with wifi everywhere
[choroba]: also, I didn't have a smart phone at that time

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-03-23 21:08 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (294 votes). Check out past polls.