Thanks for the reply. Regs Rupert Heesom Asst Distribution Engineer Adventist World Radio
-----Original Message----- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: 09 July 2002 17:01 To: [EMAIL PROTECTED] Subject: Re: Docs on how to use the Win32:ChangeNotify module > I'm trying to put together a little perl script. I'm new to perl, but > was shown the Win32:ChangeNotify module as something I could use to > watch a directory for new files to act upon. > > The documentation I have so far on Win32:ChangeNotify is > http://search.cpan.org/doc/GSAR/libwin32-0.18/ChangeNotify/ChangeNotif > y.pm . This page has given me _some_ info, but not enough for me. > Where can I find more info? I've looked at the learn.perl.org, > www.perldoc.com, www.perlarchives.com . I can't really find anything > of any use!! > > My immediate question is: once I've done a "$notify->wait" line, what > happens next? > > Do I assume that "$notify->wait" waits for a value to be returned by > "$notify = Win32::ChangeNotify->new($path,$watchsubtree,$events);" and > that the value will indicate what has changed (ie the file name of a > new file)? No it'll not return the name of the file that was changed/added. The underlying API functions do not support that. The return values will be +1 The object is signalled -1 The object is an abandoned mutex 0 Timed out undef An error occurred See perldoc Win32::IPC So, your process gets notified if something happens in the directory, it has to find out what was it by itself. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]