|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: write and read the same file not display the outputby Marshall (Prior) |
| on Sep 05, 2012 at 04:21 UTC ( #991733=note: print w/ replies, xml ) | Need Help?? |
|
What you are attempting is an extremely bad idea.
A much better general procedure is: File system operations are complex and there is possibility when your program "bombs" or other errors happen and you will be left in an "unrecoverable situation" - the original data has been screwed up and there is maybe even no way, even with advanced techniques to recover the data. Basically trying to modify an existing file is a very advanced and rarely used technique. I have software that does that but the problems and pitfalls are many - don't do it!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||