Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Recommended modules for Parent-Child trees?

by stvn (Monsignor)
on May 17, 2004 at 20:19 UTC ( #354094=note: print w/replies, xml ) Need Help??

in reply to Recommended modules for Parent-Child trees?

Hero Zzyzzx,

As lachoy has already said, you can use Tree::Simple for this. Of course, I wrote it so I favor it heavily. As for a persistence layer, I have actually implemented several different ones for Tree::Simple over the years, only one of which has been packaged for on CPAN right now, it is called Tree::Parser. Tree::Parser is more appropriate for serializing Tree::Simple heirarchies to files, but could be made to use a DBI backend by writing a custom filter.

If you would like to tell me a little more about your application, I can possibly help you out by giving you some persistence code I have already written (if it is appropriate to your needs). At the very least, I might be able to point you in the right direction.

  • Comment on Re: Recommended modules for Parent-Child trees?

Replies are listed 'Best First'.
Re: Re: Recommended modules for Parent-Child trees?
by lachoy (Parson) on May 18, 2004 at 16:01 UTC

    And you can use DBD::Mock to test it! :-) (Somewhat of an inside joke: stvn recently submitted some patches to DBD::Mock...)

    M-x auto-bs-mode

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2021-06-22 10:02 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (102 votes). Check out past polls.