Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::AdvNotify; my $obj = new Win32::AdvNotify || die "$!\n"; my $thread1 = $obj->StartThread( Directory => "C:/spot/run", Filter => LAST_WRITE, WatchSubtree => Yes ) || die "$!\n"; $thread1->EnableWatch() || die "$!\n"; while($obj->Wait(INFINITE)){ while($obj->Read(\@data)){ for($i=0;$i<=$#data;$i++){ print "$data[$i]->{FileName}\n"; } } } $thread1->Terminate(); $obj->Free;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: AdvNotify X 2
by hossman (Prior) on Jul 10, 2003 at 05:57 UTC | |
|
Re: AdvNotify X 2
by Foggy Bottoms (Monk) on Aug 11, 2003 at 09:17 UTC |