good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Run subroutine occasionallyby Marshall (Canon) |
on Mar 01, 2022 at 00:11 UTC ( [id://11141722]=note: print w/replies, xml ) | Need Help?? |
consider:
$MW->repeat($MILLISECOND_DELAY, \&someSub); runs someSub repeatedly. Of course, sub someSub{} should run "quickly" or the GUI will "freeze". Update: I re-read the question and perhaps I made an incorrect about this being a Tk GUI? If so, the OP needs to clarify. Update with Code for a GUI:
In Section
Seekers of Perl Wisdom
|
|