Usual practice is to create an output file to write the updated content to, then after the update is complete delete the old file and rename the new version to the name of the old version.
suvendra123: You may be interested in my module File::Replace to help you with this.
In reply to Re^2: How to repeat a string multiple times if found match
by haukex
in thread How to repeat a string multiple times if found match
by suvendra123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |