File::ChangeNotify::Event - Class for file change events
for my $event ( $watcher->new_events() ) { print $event->path(), ' - ', $event->type(), "\n"; }
This class provides information about a change to a specific file or directory.
This method creates a new event. It accepts the following arguments:
path => $path
The full path to the file or directory that changed.
type => $type
The type of event. This must be one of "create", "modify", "delete", or "unknown".
Returns the path of the changed file or directory.
Returns the type of event.
Dave Rolsky, <autarch@urth.org>
Copyright 2009 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install File::ChangeNotify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::ChangeNotify
CPAN shell
perl -MCPAN -e shell install File::ChangeNotify
For more information on module installation, please visit the detailed CPAN module installation guide.