in reply to Read and write files concurrently in Perl
I'm not sure from your description, but you may be looking for seek.