Welcome to the Monastery | |
PerlMonks |
Re: how to fork & join in tk?by kcott (Archbishop) |
on Apr 23, 2017 at 05:46 UTC ( [id://1188661]=note: print w/replies, xml ) | Need Help?? |
G'day redss, There's no need to use fork (or anything like that). The functionality you want is built in. Take a look at Tk::after. There's a number of ways to use this. From your description, the non-blocking form you'll want in this case will probably be:
See that documentation for more details. Note the time is in milliseconds. The $id is only needed if you subsequently want to use $id->time(?delay?). — Ken
In Section
Seekers of Perl Wisdom
|
|