Thursday, 15 January 2015

Anyway to know in perl if file is modified without polling? -



Anyway to know in perl if file is modified without polling? -

i want sort of notification in perl script when particular file modified.

is there other way rather polling constantly?

win32::changenotify, linux::inotify2

anyevent::filesys::notify: check out section says "why module file scheme notifications".

excerpt:

anyevent::filesys::notify exists because need way tie functionality modules provide event framework. neither of existing modules seem work event loop. filesys::notify::simple not supply non-blocking interface , file::changenotify requires poll method new events.

perl

No comments:

Post a Comment