Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: pure perl tail revisitedby zentara (Archbishop) |
on Sep 10, 2002 at 15:05 UTC ( [id://196699]=note: print w/replies, xml ) | Need Help?? |
Hi, I updated my code with a fix for small files. It works pretty well
now.
if($chunk >= $filesize){$chunk = $filesize} and if($numlines >= $#tailtemp +1){$numlines = $#tailtemp +1}It took about 10% off my benchmark speed, but is still relatively fast.
In Section
Cool Uses for Perl
|
|