Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-11-23 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (128 votes), past polls