in reply to Perl not able to read file
How do you know that it is unable to read the second file?
What happens? What did you expect to happen?
You cannot open the same file for reading and writing at the same time. If you want to read what you just wrote, you will also need to look at seek and flush to synchronize the two filehandles.
Why do you want to read what you just wrote at all?
|
|---|