For your code, you use the same file handler (INF) for read and appened. When you are open a file handle for append mode, the file position is shows the end of the file. You may use another file handle for write mode, then you able to got the expected output.
In reply to Re: find & replace a string in perl
by k_manimuthu
in thread find & replace a string in perl
by vr786
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |