Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 contemplating the Monastery: (12)
As of 2014-07-23 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (141 votes), past polls