Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re:x2 Performing a tail(1) in Perl (reading the last N lines of a file)

by KM (Priest)
on Apr 25, 2002 at 17:36 UTC ( #162053=note: print w/replies, xml ) Need Help??


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

But, it does what you want (plus more). You sort of took a spoke of a wheel, and rewrote the spoke :) Your code isn't any more modular than the one from PPT. Point being that there is good code written to do what you wanted, but instead of using it (embedding what you needed), or modularizing it you redid it. I'm not griping, but when you show a lot of benchmarks you obviously took time to do it multiple ways to see which is fastest (fast ne best) as opposed to taking the time to make a current wheel more useful. But, like I said before, seems like you had a good exercise :)

Cheers,
KM

  • Comment on Re: Re:x2 Performing a tail(1) in Perl (reading the last N lines of a file)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://162053]
help
Chatterbox?
[Discipulus]: choroba's tk cb client become incerdibly stable after https switch; it's a coincidence?
[Discipulus]: it hits some read timeouts but reconnect without issues
erix googles incerdibly and finds incredibly (translate is cleverder than I am)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2018-06-19 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (111 votes). Check out past polls.

    Notices?