Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Moving data in a tree

by wade (Pilgrim)
on Jul 21, 2008 at 21:36 UTC ( #699159=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Moving data in a tree
in thread Moving data in a tree

In general, if I don't have a memory crisis, I'd:

  • read the whole file into a suitable data structure,
  • manipulate the data structure, and
  • write the data structure out to a new file.

That makes things easier to code and, since you have before and after files, easier to check.

--
Wade


Comment on Re^4: Moving data in a tree

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-07-30 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls