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

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 pondering the Monastery: (8)
As of 2015-07-31 08:29 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (276 votes), past polls