more useful options | |
PerlMonks |
Writing to file and reading from same fileby basm100 (Novice) |
on Feb 27, 2002 at 11:34 UTC ( [id://147862]=perlquestion: print w/replies, xml ) | Need Help?? |
basm100 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I want to know how I can open a file for both reading and writing My script writes data to a file, and I then want to read data from that same file in the next part of my script. I tried closing the filehandle and reopening as a read file, but it threw up the error "open for writing at line..." Is there an easy way to open a file for both reading and writing ? Thanx, basm100
Back to
Seekers of Perl Wisdom
|
|