I need a perl script for the following case.

Input is a text file with the following content
AB001.
I need to replace the text with AB002 in a new file.
This has to go on until AB999.
ie., At the end there should be 999 files with the contents AB001,AB002... AB999 respectively.

Please help me out in this.
Thanks in advance.

There is another forum here for soliciting developers.

If you are actually willing to do your own work, though, regex to get the "leading text" and the digits, a loop, a counter, and a variable to hold the result, then overwriting the file. Give it a try, post your code, and we will help you correct it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.