in reply to Prototype mismatch error - ChangeNotify

Taken from CPAN:

Constructor for a new ChangeNotification object. $path is the directory to monitor. If $subtree is true, then all directories under $path will be monitored. $filter indicates what events should trigger a notification. It should be a string containing any of the following flags (separated by whitespace and/or |).

Something tells me that an underscore isn't the same as 'whitespace and/or |'. Give that a try and see if it works.

  • Comment on Re: Prototype mismatch error - ChangeNotify

Replies are listed 'Best First'.
Re^2: Prototype mismatch error - ChangeNotify
by John M. Dlugosz (Monsignor) on May 20, 2011 at 13:43 UTC
    FILE_NOTIFY_CHANGE_SIZE is not several options separated by underscores. It is one word, and is a constant exported from that module.

    If his line doesn't match the correct function call, that will be a problem for later. The compilation isn't getting that far, choking on the use.

    But the next paragraph does say “($filter can also be an integer composed from the FILE_NOTIFY_CHANGE_* constants.)” so that's the form he's using.