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

Re^2: Display last record

by Happy-the-monk (Monsignor)
on Dec 31, 2005 at 18:43 UTC ( #520181=note: print w/ replies, xml ) Need Help??

in reply to Re: Display last record
in thread Display last record

Just move the file pointer to the end of the file minus whatever the maximum record size is, then read everything

Without example code to back it up, this must look quite a bit obscure to a newbee.

Being concerned of large files I would opt for the answer in perlfaq5 to perldoc -q "a line in a file" and use Tie::File.

Cheers, Sören

Comment on Re^2: Display last record

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-01-28 08:13 GMT
Find Nodes?
    Voting Booth?

    My top resolution in 2015 is:

    Results (213 votes), past polls