http://www.perlmonks.org?node_id=784110


in reply to Read and write files concurrently in Perl

I'm not sure from your description, but you may be looking for seek.