Hello All
I am a newbie to PERL language...If i have a file with data of form
abcd 4 {1,2,3} 3
lmn- 3 {12,18,19,22} 4
then i can read them as...
($list $listTotal $set $noElements) = split / /
But if i have a dataset of the form:
abcd 4 {1,2,3} 3[color=blue]
>{1,2}
>{3}[/color]
lmn- 3 {12,18,19,22} 4[color=blue]
>{12}
>{18,19}
>{19,22}[/color]
i.e. I have more than two kinds of delimiters, then how should i read it.
Please, help...I am unable to go ahead with my work because i am stuck here.
Any kind of input will be appreciated. Thanks a lot in advance....
~uc_sk
I am a newbie to PERL language...If i have a file with data of form
abcd 4 {1,2,3} 3
lmn- 3 {12,18,19,22} 4
then i can read them as...
($list $listTotal $set $noElements) = split / /
But if i have a dataset of the form:
abcd 4 {1,2,3} 3[color=blue]
>{1,2}
>{3}[/color]
lmn- 3 {12,18,19,22} 4[color=blue]
>{12}
>{18,19}
>{19,22}[/color]
i.e. I have more than two kinds of delimiters, then how should i read it.
Please, help...I am unable to go ahead with my work because i am stuck here.
Any kind of input will be appreciated. Thanks a lot in advance....
~uc_sk
Comment