In case it isn't clear, $s is for start, the line to start on. For $fileLastLine I used:
my $fileLastLine = `wc -l ${filename}`; chomp $fileLastLine; $fileLastLine = int ($fileLastLine);

In reply to Re^4: Displaying/buffering huge text files by mjbiren
in thread Displaying/buffering huge text files by spurperl

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