Perl: the Markov chain saw | |
PerlMonks |
Re: 'Anonymous' copy via file handle failsby Anonymous Monk |
on Jan 17, 2013 at 00:02 UTC ( [id://1013664]=note: print w/replies, xml ) | Need Help?? |
Filehandles are iterators. Once you reach the end, you're at the end, subsequent read/readline reads from the end, there is nothing at the end, so you have to use seek to rewind the FA filehandle before you read it again.
In Section
Seekers of Perl Wisdom
|
|