in reply to To replace the occurence string in perl

You're a long-time member of this site, so you should know to post the code you have already written and also explain how your current code fails to do what you need.

Also, you should know to format your code and data using <code>...</code> tags so they can be downloaded easily.

Please do both to help us help you better.