Scarborough has asked for the wisdom of the Perl Monks concerning the following question:
$input->bind('<Return>', [\&mysub]); #$input is an Entry widget
$input->bind('<Return>', [\&mysub($arg)]);
Is it possible to pass arguements in this way or am I missing the point?Tk::Error: Not a CODE reference at c:\perl\site\lib\/tk.pm line 340
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Binding Tk events
by davidj (Priest) on Jun 01, 2004 at 15:12 UTC | |
by graff (Chancellor) on Jun 02, 2004 at 01:46 UTC | |
by Scarborough (Hermit) on Jun 01, 2004 at 15:47 UTC | |
by davidj (Priest) on Jun 01, 2004 at 16:11 UTC | |
|
Re: Binding Tk events
by dave_the_m (Monsignor) on Jun 01, 2004 at 15:14 UTC | |
|
Re: Binding Tk events
by davidj (Priest) on Jun 01, 2004 at 18:21 UTC |