in reply to Re: Inotify2 + AnyEvent
in thread Inotify2 + AnyEvent
No, \&callback(time) is not a "naked code ref". Yes, the similar-looking \&callback is a code ref, but adding (time) on the end changes the parsing to \(&callback(time)), that is, a call to callback(time) but ignoring prototypes and then returning reference(s) to the returned scalar value(s).
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Inotify2 + AnyEvent (naked code ref)
by zentara (Cardinal) on Oct 05, 2011 at 20:31 UTC | |
by tye (Sage) on Oct 05, 2011 at 21:05 UTC | |
by zentara (Cardinal) on Oct 06, 2011 at 10:06 UTC | |
by Anonymous Monk on Oct 06, 2011 at 10:12 UTC |