creates a reference to the sub mysub;\&mysub
calls mysub, then creates a reference to the returned value\&mysub(...)
I'm not familiar with TK, so I don't know what bind is supposed to do, but you might be able to achieve what you want with a closure:
$input->bind('<Return>', [ sub { mysub($arg) } ] );
Dave.
In reply to Re: Binding Tk events
by dave_the_m
in thread Binding Tk events
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |