Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: write and read the same file not display the output

by choroba (Chancellor)
on Sep 04, 2012 at 22:44 UTC ( #991698=note: print w/replies, xml ) Need Help??


in reply to write and read the same file not display the output

After writing to the file, the position in the filehandle corresponds to the end of the file. There is nothing to read there. You have to seek to the beginning of the file, or to a position obtained earlier by tell.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: write and read the same file not display the output

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991698]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-09-19 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (230 votes). Check out past polls.

    Notices?