Help for this page
my @previous; while (<LINE>) { ... push @previous, $_; shift @previous if @previous > 5; }