Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Display last record

by Happy-the-monk (Abbot)
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

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 meditating upon the Monastery: (13)
As of 2016-10-28 14:57 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (385 votes). Check out past polls.