Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Perl not able to read file

by Corion (Patriarch)
on Sep 22, 2017 at 06:31 UTC ( [id://1199883]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1199883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found