in reply to I need a strategy please!

Welcome, ikuzmanovs.

What have you tried so far? It is the custom on the PerlMonks site for OP's to post a snippit of code of which they have tried, and got stuck. People are unlikely to offer anything if it appears that you want them to do your work for you...


Also, have you checked CPAN? There apears to be 3 hits: newick

Also, please take some time to read the following three links:
How do I compose an effective node title?
How do I post a question effectively?
Markup in the Monastery

Replies are listed 'Best First'.
Re^2: I need a strategy please!
by Anonymous Monk on Jan 04, 2010 at 01:46 UTC
    strategy
    1. open file
    2. read line by line
    3. split line into values, and stuff into Tree object
    4. close file
    5. walk tree and output into desired format
    6. ...
    7. ...
    8. profit :)