Dr. Mu has asked for the wisdom of the Perl Monks concerning the following question:
*This behavior is at odds, by the way, with the description in O'Reilly's Mastering Perl/Tk. There, $_[0] is stated to be the first explicit argument in the structure, '<Button>' => [sub {...}, $arg0, $arg1]. In fact, $arg0 will come through as $_[1]. $_[0] is always a reference to the widget receiving the event.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Identifying Tk::Canvas Items Bound to Events
by eserte (Deacon) on Apr 19, 2004 at 08:39 UTC | |
by Dr. Mu (Hermit) on Apr 19, 2004 at 16:26 UTC |