Renee Baecker > Win32-FileNotify-0.31 > Win32::FileNotify

Download:
Win32-FileNotify-0.31.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.31   Source  

NAME ^

Win32::FileNotify - Monitor file changes

SYNOPSIS ^

  use Win32::FileNotify;
  
  my $file = './test.txt';
  my $notify = Win32::FileNotify->new( $file );
  $notify->wait;
  
  print $file, " wurde veraendert\n";

DESCRIPTION ^

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 ^

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 ^

Win32::ChangeNotify

AUTHOR ^

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

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: