in reply to Re: (tye)Re: TK Problem (me again)
in thread TK Problem (me again)
Which is close to what you have as => and , are interchangeable (although the arrow is semantically easier to follow in this case). You may need to pass a reference to the filehandle instead of the filehandle, but I don't have a good handle on filehandles, so I'd recommend further inquiry after trying something more like the above. And most importantly your callback appears to be wrapped in an anonymous list reference, when all you really need is a sub reference.$mw->fileevent( *\LOG, 'readable' => \&insert_txt )
|
|---|