P is for Practical | |
PerlMonks |
modifying in the same fileby prassi (Acolyte) |
on Jun 08, 2012 at 18:03 UTC ( [id://975215]=perlquestion: print w/replies, xml ) | Need Help?? |
prassi has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Monk,
I am intend to remove C and C++ style comment from a C code. In the below perl script I am reading from a file, modifying and writing into another file. Now my question I need to write into the same file as when I modify line. If I open the file in write mode it is not working. Please help me how do I write into the same file and at the same line.
Regards, =Prasad
Back to
Seekers of Perl Wisdom
|
|