in reply to Re: constructing a tree from csv file
in thread constructing a tree from csv file

Dear choroba,

Suppose P.P belongs to group 'A', P.P.E belongs to group 'B',,So Id like to have their group names output against them also.

M143: M143<-M10<-Q = P.P, A M420: M420<-M143<-M10<-Q = P.P.E, B M407: M407<-M143<-M10<-Q = P.P.PL, C M10: M10<-Q = P, D M421: M421<-M143<-M10<-Q = P.P.E, B M406: M406<-M143<-M10<-Q = P.P.PL, C
Of course number of groups will be hardly 4 or 5. How can I do it ?

Replies are listed 'Best First'.
Re^3: constructing a tree from csv file
by choroba (Cardinal) on Nov 01, 2013 at 10:37 UTC
    Create a hash that maps the method strings to groups.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Thanks a lot pal !!!!!
      Dear choroba, I have not been able to find any tutorial for what you just wrote. Could you please help me on this. I though I'd try it myself but I ahve not been able to even start with it. Please if you could help me in any way !!!! thanks
        Read perldata - Perl data types to learn on how to use hashes. See below on how I would implement it.
        لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ