Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
[robby_dobby]: LA: That's there. But this is work and it's the same thing as falling asleep driving :-)
[Lady_Aleena]: I love the dream where I was at a huge house and decided to go swimming in the pool, but then the tour group showed up.
choroba fell asleep while driving half a year ago
[choroba]: fortunately, only the traffic sign and the car were damaged
[Discipulus]: fall asleep? coffee time!
Discipulus when in motorbike it is impossible to fall asleep.. another advantage

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2017-05-29 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?