Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to read the log rotated file

by rnewsham (Curate)
on Mar 07, 2013 at 09:57 UTC ( [id://1022182]=note: print w/replies, xml ) Need Help??


in reply to How to read the log rotated file

You could use File::ReadBackwards to read messages.1 until you reach the point where your previous scan ended. That way you only need to read the lines you need rather than the whole file.

Replies are listed 'Best First'.
Re^2: How to read the log rotated file
by kar_thik82 (Novice) on Mar 07, 2013 at 15:02 UTC

    Thanks for your help will the File::ReadBackwards takes the cursor position since i am using tell function to store the current position of the file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found