Please I'm new to perl give me solution for this....
I have file contain following
Charith 5 matara
Saman 2 kanya
Viraj 8 jafna
Anura 4 kandy
.
.
I need to replace above second colomn numbers as follow (incrimental sequence as 0,1,2,3,4....) out put should like follow
Charith 0 matara
Saman 1 kanya
Viraj 2 jafna
Anura 3 kandy
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.
Please review the rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.