Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: pure perl tail revisited

by zentara (Archbishop)
on Sep 10, 2002 at 15:05 UTC ( [id://196699]=note: print w/replies, xml ) Need Help??


in reply to pure perl tail revisited

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196699]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-24 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found