|o||directories => $path|
directories => \@paths
This argument is required. It can be either one or many paths which should be watched for changes.
filter => qr/.../
This is an optional regular expression that will be used to check if a file is of interest. This filter is only applied to files.
By default, all files are included.
exclude => [...]
An optional list of paths to exclude. This list can contain either plain strings or regular expressions. If you provide a string it should contain the complete path to be excluded.
The paths can be either directories or specific files. If the exclusion matches a directory, all of its files and subdirectories are ignored.
follow_symlinks => $bool
By default, symlinks are ignored. Set this to true to follow them.
If this symlinks are being followed, symlinks to files and directories will be followed. Directories will be watched, and changes for directories and files reported.
sleep_interval => $number
For watchers which call sleep to implement the $watcher->wait_for_events() method, this argument controls how long it sleeps for. The value is a number in seconds.
The default is 2 seconds.
|o||event_class => $class|
Some watcher subclasses may implement blocking as a sleep loop, while
others may actually block.
This method returns a list of any interesting events seen since the
last time the watcher checked.
If this is true, the watcher will report on all events.
Some watchers, like the Default subclass, are not smart enough to track things like a file being created and then immediately deleted, and can only detect changes between snapshots of the file system.
Other watchers, like the Inotify subclass, see all events that happen and report on them.
Dave Rolsky <firstname.lastname@example.org>
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
|perl v5.20.3||FILE::CHANGENOTIFY::WATCHER (3)||2016-04-03|