Dear all.
I have a tab delimited file as follow:
V namep
1.0 AAA 0.001
0.9 BBB 0.003
0.8 CCC 0.004
.
I need to convert the file into following format:
{ labels =
(
{v=1.0; name = AAA; p = 0.001; },
{v=0.9; name =
Dear all.
I have a tab delimited file as follow:
V namep
1.0 AAA 0.001
0.9 BBB 0.003
0.8 CCC 0.004
.
I need to convert the file into following format:
{ labels =
(
{v=1.0; name = AAA; p = 0.001; },
{v=0.9; name
I have not been able to make the following code work yet and would like to
hear your suggestion for a better option. The following is my thought at
this point.
Use strict and warnings :)
print { labels =\n;
print \t\t (\n;
open IN tag.txt;
That shoudl error out because there;s no comma
[ Please do not top-post. TIA ]
[ Please TRIM your posts. TIA ]
[ Please don't reply to a previous post unless you are contributing to that
thread. TIA ]
Li, Aiguo (NIH/NCI) wrote:
Dear all.
Hello,
I have a tab delimited file as follow:
V namep
1.0 AAA 0.001
0.9 BBB