![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Recursion, tree parsing.by !unlike (Beadle) |
on Apr 14, 2003 at 14:24 UTC ( #250296=note: 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 Section
Seekers of Perl Wisdom
|
|