in reply to Binding Tk events
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.
|
|---|