Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Fletch (Bishop)
on Apr 25, 2002 at 17:25 UTC ( [id://162049]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BLOCKSIZE = 1024 (or so)
    lines = 0 ; lines_wanted = 10
    ...
          pos = index of \n
        else
          last
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-28 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found