$ntfy = Win32::ChangeNotify->new(path, subtree, events);
$ntfy->wait or warn "Something has failed: $!");
The function returns a reference to the object as
$ntfy. path is the
pathname of the directory to monitor.
subtree is a Boolean value that, if true,
forces the object to monitor all subdirectories of the
object's path. The eventsparameter indicates the type of events that will trigger a
notification. It can be one of the following string values: