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

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2017-06-28 23:16 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (652 votes). Check out past polls.