… | |
… | |
27 | # cancel this watcheR: remove no further events |
27 | # cancel this watcheR: remove no further events |
28 | $e->w->cancel; |
28 | $e->w->cancel; |
29 | }); |
29 | }); |
30 | |
30 | |
31 | DESCRIPTION |
31 | DESCRIPTION |
32 | The Linux::Inotify2 Class |
|
|
33 | This module implements an interface to the Linux 2.6.13 and later |
32 | This module implements an interface to the Linux 2.6.13 and later |
34 | Inotify file/directory change notification sytem. |
33 | Inotify file/directory change notification sytem. |
35 | |
34 | |
36 | It has a number of advantages over the Linux::Inotify module: |
35 | It has a number of advantages over the Linux::Inotify module: |
37 | |
36 | |
… | |
… | |
39 | - the equivalent of fullname works correctly |
38 | - the equivalent of fullname works correctly |
40 | - it is better documented |
39 | - it is better documented |
41 | - it has callback-style interface, which is better suited for |
40 | - it has callback-style interface, which is better suited for |
42 | integration. |
41 | integration. |
43 | |
42 | |
|
|
43 | The Linux::Inotify2 Class |
44 | my $inotify = new Linux::Inotify2 |
44 | my $inotify = new Linux::Inotify2 |
45 | Create a new notify object and return it. A notify object is kind of |
45 | Create a new notify object and return it. A notify object is kind of |
46 | a container that stores watches on filesystem names and is |
46 | a container that stores watches on filesystem names and is |
47 | responsible for handling event data. |
47 | responsible for handling event data. |
48 | |
48 | |