|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^4: Inotify2 + AnyEvent (naked code ref)by tye (Cardinal) |
| on Oct 05, 2011 at 21:05 UTC ( #929880=note: print w/ replies, xml ) | Need Help?? |
|
I'm not going to install Tk at the moment. But, \&callback does not call callback() (it just provides a code ref):
The Tk::Button documentation (see also Tk::callbacks) implies that -command => $codeRef will not immediately call the referenced sub. There certainly could be other reasons for that usage to cause "pre-mature exit and crash". For example, -command => \&callback, time, would likely "crash". I see plenty of evidence to suggest that it will not cause callback() to be called at button-creation time and no details suggesting that you have enough evidence to support that one part of your claim. - tye
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||