#!/usr/bin/perluse strict;use warnings;open LOGFILE, "log.txt";while (1) { print "$.: $_" while ; sleep(1); seek LOGFILE, 0, 1;}