merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
Prototype mismatch: sub main::INFINITE: none vs () at C:........../lib/Exporter.pm line 66.
at C:........app.pl line 40.
.
The lines near line 66 of Exporter.pm are (line is at the beginning of each line)
64 sub {require Carp; &Carp::carp} if not $SIG{__WARN__};
65 # shortcut for the common case of no type character
66 *{"$callpkg\::$_"} = \&{"$pkg\::$_"} foreach @_;.
67}.
.
The lines near line 40 of the app are.
38 use File::Basename;
39
40 use Win32::ChangeNotify;
I use the change notify function with the follwoing
Can someone kindly let me know how to remove the error?$notify = Win32::ChangeNotify->new($watched_dir, 0, FILE_NOTIFY_CHANGE +_SIZE);
This error seems to be ingored and Perl continues without any problems but I would rather not have it appear.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Puzzling Prototype Mismatch Error
by Corion (Patriarch) on Sep 08, 2014 at 15:55 UTC | |
by tye (Sage) on Sep 08, 2014 at 16:25 UTC | |
|
Re: Puzzling Prototype Mismatch Error
by Anonymous Monk on Sep 08, 2014 at 15:55 UTC | |
by Athanasius (Archbishop) on Sep 08, 2014 at 16:15 UTC |