A file only has one "position", which is used for reading and writing. If you write to a file, the position advances. If you try to read from the end of a file, you will get nothing. See seek for how to manipulate the read/write position, and tell to find out the current position.
In reply to Re: Clarification on the write read mode of filehandling
by Corion
in thread Clarification on the write read mode of filehandling
by I_love_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |