What did you find wrong with the Perl Power Tools version of tail(1) that you wanted to (partially) recreate it? Looks like you had a fun exercise though :)

Cheers,
KM


In reply to Re: Performing a tail(1) in Perl (reading the last N lines of a file) by KM
in thread Performing a tail(1) in Perl (reading the last N lines of a file) by grinder

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":