views:

353

answers:

4

How do can I create binary trees in Perl?

+6  A: 

There's the Tree::Binary module in CPAN...

Wooble
+6  A: 

CPAN contains a very wide variety of different modules, and rather than reinventing the wheel, I would suggest looking for it there first. Tree::Binary seems to do what you want to do.

Barns
+4  A: 

I'm guessing this is some kind of homework assignment (although it's hard to tell from the question), so if you actually have to write your own, a good place to start would be learning how to create objects in Perl (here's a tutorial). The wikipedia page will probably be helpful as well.

A more detailed question will yield better responses.

oltman
+3  A: 
Chris Charley