Keep It Simple, Stupid | |
PerlMonks |
Re: find & replace a string in perlby k_manimuthu (Monk) |
on Nov 25, 2010 at 07:51 UTC ( [id://873591]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|