Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 "$_"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994624]
help
Chatterbox?
[abner]: can someone give me a hint about how to query a mysql table based on matches in two columns?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-01-24 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (201 votes). Check out past polls.