Hii everybody!! I am a new user of Perl. I have a small problem here:
I have got a tab delimited text file containing a list of chemicals and their properties. Now I would like to create a new column where the program should first scan the whole file and then it will write new properties in a new column.
For example:
File name: chem.txt
Chem name react
Abc 66
cbd 65
gbk 47
and so on..
Now I would like the script to read the whole file and if it finds 'gbk' in file, then it creates a new column here and writes 'red'.
Output:
Chem name react Property
Abc 66
cbd 65
gbk 47 red
Much appreciated if you could help me..(I have attached the example text file also)
Thanks a lot..
Pratul