Hello,
 
When I try the following ;
 
require Win32::ChangeNotify;
 
$Path = "c:\\winnt\\chdir";
$WatchSubTree = "0
";
$Events = "FILE_NAME";
 
$notify=Win32::ChangeNotify->new($Path,$WatchSubTree,$Events);
$notify->reset;
$notify->wait;
 
I get the following error :
Can't call method "reset" on an undefined value at p.pl line 10.
 And the same with the wait function.
 
What am I doing wrong ?
 
Thanks
 
Bas

Reply via email to