Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Perl not able to read fileby Corion (Patriarch) |
on Sep 22, 2017 at 06:31 UTC ( [id://1199883]=note: print w/replies, xml ) | Need Help?? |
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?
In Section
Seekers of Perl Wisdom
|
|