Dear Monks,
I am new to perl, have spent so much time for this pgm with unfruitful results please help me with it. I have an array which consists of an unique Id followed by sequence of characters.
for Example 1f:6 aaaabbbbcccdddgi
1f:8 ggggggiiiihhhhbb
2c:7 ffffffttttthhhhh
2f:9 ggksvskbskbgskbs
1f:0 bfgfggvkvgkgbkui
now I need to eliminate the duplicates for the ID where first 2 letters of the ID is same, and keep the only the first sequence of array (for ID which have duplicates ) in result.
so desired output is going to be:
1f:6 aaaabbbbcccdddgi
2c:7 ffffffttttthhhhh
2f:9 ggksvskbskbgskbs
Regards