#!/usr/bin/perl open FILE,"; $curpos = tell(FILE)) { ## do something exciting here print; } sleep(1); seek(FILE, $curpos, 0); }