in reply to Re: Tree in perl with hashes
in thread Tree in perl with hashes

Thanks for the many answers, but I'm a bit confused. Here's the problem: I'm trying to traverse a version tree in a SCM tool (Continuus). Since you can only traverse 1 level at a time. So I run a command like this:
my $tree = { name => undef, children => [], }; foreach (`command($tree->{name})`){ pseudo: add $_ to children[] for this $tree->{name}; } pseudo add all the childrens children.
Could you please give an newbie example?
Thanks,
Rune