in reply to Re^3: how to output the final Tree into a file?
in thread how to output the final Tree into a file?

ok i can understand that i have already declared $treeout before. But I think that all the information of the tree that i need is stored in $treeout and i cant use it. Just emptying $treeout with undef has no point at all.

Replies are listed 'Best First'.
Re^5: how to output the final Tree into a file?
by 1nickt (Canon) on Mar 16, 2016 at 00:41 UTC

    That's right. Did you try:

    while ( my $tree = $treeout->next_tree ) { for my $node ( $tree->get_nodes ) { printf $fh "id: %s bootstrap: %s\n", $node->id || '', $node->b +ootstrap || '', "\n"; } }

    The way forward always starts with a minimal test.
Re^5: how to output the final Tree into a file?
by Anonymous Monk on Mar 16, 2016 at 00:54 UTC

    ok i can understand that i have already declared $treeout before. But I think that all the information of the tree that i need is stored in $treeout and i cant use it. Just emptying $treeout with undef has no point at all.

    Ah, ok, now instead of code fragments, we're going with thought fragment?

    Why don't you post the whole code?

      ok.Here is another thought fragment: I don't like ....let me think how this is called.... ah yes .. i don't like Mr Clever guys. this is what i absolutely hate in the scientific field.

      i just need to know if it is any way to extract the information of $treeout to a file.thats all.

      ps check my exp

        ok.Here is another thought fragment: I don't like ....let me think how this is called.... ah yes .. i don't like Mr Clever guys. this is what i absolutely hate in the scientific field. i just need to know if it is any way to extract the information of $treeout to a file.thats all. ps check my exp

        :)

        A: yada yada

        B: What are you talking about, show code?

        A: yada yada left

        B: So what are you talking about, show code?

        A: I just need help smartass

        B: I DONT KNOW WHAT YOURE ASKING, SHOW CODE?