good chemistry is complicated,
and a little bit messy -LW
rename duplicate databy blacknight (Initiate)
|on Jun 21, 2012 at 21:25 UTC||Need Help??|
blacknight has asked for the
wisdom of the Perl Monks concerning the following question:
I am new user in perl and in PerlMonk I tried to change a duplicate element of table in a file. In other word I have this is the table format
xxxx . yyy 521 916 . + . ID=OSCAR1028v1rpkm9.67
xxxx . xxx 521 567 . + . Parent=OSCAR1028v1rpkm9.67
xxxx . yyy 126 130 . - . ID=OSCAR10281vrpkm9.67
xxxx . xxx 129 130 . - . Parent=OSCAR1028v1rpkm9.67
I am interested to change only duplicated ID="OSCAR10281v1rpkm9.67" section,
in order to mantain the first occurence of ID="XXXXXX" unchanged but the second and third and so on to change them in this way
ID=OSCAR10281v1rpkm9.67".1" ID=OSCAR10281v1rpkm9.67".2" ... ".4" ..."n"
n for occurence of specific ID="xxxx"
I thank you in advance for any suggestion that you will give me.