in reply to Perl Recursion
object_1 object_2 active object_2 object_3 active
You need to first identify which of the two columns (1 or 2) represents the parent in the relationship. Next, you need to identify the root(s), and build the tree in memory (assuming the file will fit in memory). Once you have done that, you just need to find the node you want to deactivate and walk the tree below that point deactivating all attached nodes.
Cheers - L~R
|
|---|