|
|
| P is for Practical | |
| PerlMonks |
Re: write and read the same file not display the outputby choroba (Prior) |
| on Sep 04, 2012 at 22:44 UTC ( #991698=note: print w/ replies, xml ) | Need Help?? |
|
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.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||