Just tried print $^E as well and got: "Error creating Win32::ChangeNotify object: The directory name is invalid at - line 11."
So I went and created a directory 'c:\winnt\chdir' and it went well. What does $^E return for you? -- Simon Oliver use strict; require Win32::ChangeNotify; my $Path = "c:\\winnt\\chdir"; my $WatchSubTree = 0; my $Events = "FILE_NAME"; my $notify = Win32::ChangeNotify->new($Path,$WatchSubTree,$Events); die "Error creating Win32::ChangeNotify object: $^E" unless ref $notify; $notify->reset; $notify->wait; _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users