Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^3: Moving data in a tree

by wade (Pilgrim)
on Jul 22, 2008 at 00:08 UTC ( #699191=note: print w/ replies, xml ) Need Help??

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

I suppose it would be easiest if the type of structure is an array. In fact, it is approximately 700 rows and 10 columns of data.

Not at all. Let your data tell you how it wants to be arranged and accessed. If, as you've implied by your original post, the data wants to be a tree, let it be a tree.

In Perl, this can be expressed in various ways. ikegami uses an array called branches at each node and that makes a lot of sense. In his/her code, each branch is an object reference but it could also have been a reference to a hash.


Comment on Re^3: Moving data in a tree

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2015-11-27 18:41 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls