We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You can probably get away without checking for the existance of @{$t->{children}}. Either that or change:
with
or some other variant. Depends on how you create the node. Must admit I've never noticed C like strcutures in Perl (such as trees and link-lists). Recently I've wondered why. Could be that there are, just I've never noticed... !unlike "The price if ignorance, which is of course that you must learn from those who know." Socrates (paraphrased) In reply to Re: Recursion, tree parsing.
by !unlike
|
|