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

Re^2: Read log which is being updated continuisly

by bimleshsharma (Beadle)
on Sep 20, 2012 at 10:30 UTC ( #994624=note: print w/ replies, xml ) Need Help??


in reply to Re: Read log which is being updated continuisly
in thread Read log which is being updated continuisly

Yes you are right but File::Tail->read has capability to read file. Anyway i tried below but still not success.

use File::Tail; my $name="/some/file/toread/"; my $ref=tie *FH,"File::Tail",(name=>$name); while (<FH>) { print "$_"; }


Comment on Re^2: Read log which is being updated continuisly
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-12-27 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls