Win32::FileNotify - Monitor file changes


Win32-FileNotify documentation  | view source Contained in the Win32-FileNotify distribution.

Index


NAME

Top

Win32::FileNotify - Monitor file changes

SYNOPSIS

Top

  use Win32::FileNotify;

  my $file = './test.txt';
  my $notify = Win32::FileNotify->new( $file );
  $notify->wait;

  print $file, " wurde veraendert\n";

DESCRIPTION

Top

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.

METHODS

Top

new

  my $filename = '/path/to/file.txt';
  $notify = Win32::FileNotify->new( $filename );

creates a new object for the given file.

wait

  $notify->wait;

See Win32::IPC

SEE ALSO

Top

Win32::ChangeNotify

AUTHOR

Top

Renee Baecker, <module@renee-baecker.de>

COPYRIGHT AND LICENSE

Top


Win32-FileNotify documentation  | view source Contained in the Win32-FileNotify distribution.