Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Prototype mismatch error - ChangeNotify

by sierpinski (Chaplain)
on May 20, 2011 at 13:35 UTC ( [id://905920]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://905920]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found