Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Seeking a better way to monitor a file's change

by alexbio (Monk)
on Jun 26, 2010 at 11:35 UTC ( [id://846666]=note: print w/replies, xml ) Need Help??


in reply to Seeking a better way to monitor a file's change

An easier way to do so could be using the AnyEvent module.

In the AnyEvent::Intro there is an example that does something very similar to what you are trying to do. See the Introduction to Event-Based Programming section (instead of using STDIN you can obviously use any file handle you want).

It has been implemented in the AnyEvent::Filesys::Notify module.

Just my 2¢.

Alex's Log - http://alexlog.co.cc
  • Comment on Re: Seeking a better way to monitor a file's change

Log In?
Username:
Password:

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

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

    No recent polls found