Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by repellent (Priest)
on Jun 26, 2010 at 03:21 UTC ( [id://846638]=note: print w/replies, xml ) Need Help??


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

See File::Monitor::Delta. The module is able to monitor changes to file size.

A file can change in many ways. What exactly would you consider a file "change"? Perhaps checking the file's modified time mtime is sufficient enough for your needs?

If you're interested in whether the contents of the file changed, you may want to look at Digest::file.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found