in reply to Printing the last few lines of the Error log

Aside from the obvious "Read man tail" reply

#!/usr/bin/perl my $lines = shift || 10; my @buf; while( <> ) { push @buf, $_; shift @buf if @buf > $lines } print @buf; exit 0;