
File::Monitor::Simple - Watch for changed application files

my $watcher = File::Monitor::Simple->new(
directory => '/path/to/MyApp',
regex => '\.yml$|\.yaml$|\.pm$',
);
while (sleep 1) {
my @changed_files = $watcher->watch;
}

This class monitors a directory of files for changes made to any file matching a regular expression. It correctly handles new files added to the application as well as files that are deleted.

Creates a new Watcher object.
Returns a list of files that have been added, deleted, or changed since the last time watch was called.

Catalyst, HTTP::Server::Restarter, File::Modified, File::Monitor

Sebastian Riedel, <sri@cpan.org>
Andy Grundman, <andy@hybridized.org>
Mark Stosberg, <mark@summersault.com>

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.