go ahead... be a heretic | |
PerlMonks |
Re: Parsing newick treesby BrowserUk (Patriarch) |
on Oct 17, 2008 at 18:17 UTC ( [id://717834]=note: print w/replies, xml ) | Need Help?? |
A non-eval solution. This constructs a AoA. I'd define constants: use constant { LEFT => 0, RIGHT => 1 }; rather than use a HoH for this, but converting the code to produce a HoH is trivial. As coded, it does require an absence of spaces, so strip them first if they might be present: Updated with a slightly less verbose version
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|