Win32::FileNotify - Monitor file changes
use Win32::FileNotify; my $file = './test.txt'; my $notify = Win32::FileNotify->new( $file ); $notify->wait; print $file, " wurde veraendert\n";
This is a wrapper around Win32::ChangeNotify. With Win32::FileNotify you can monitor one specific file and you get notified when the file has changed.
my $filename = '/path/to/file.txt'; $notify = Win32::FileNotify->new( $filename );
creates a new object for the given file.
Renee Baecker, <firstname.lastname@example.org>
Copyright (C) 2007 - 2008 by Renee Baecker
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.