Bio_student has asked for the wisdom of the Perl Monks concerning the following question:
I have problem in reading a file and change it to get some specific output. For example : I want to read a file : filename.txt which contain 2 lines:
Data A 1 2 3 4 5
Data B 6 7 8 9 10
the name of the data and the values are tab separated. my wish is to change it into :
Data A = (1,2,3,4,5); Data B = (6,7,8,9,10);Thanks in advanced for your kindly help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing the file
by moritz (Cardinal) on Mar 17, 2011 at 09:17 UTC |