randor has asked for the wisdom of the Perl Monks concerning the following question:
and have the program set the time initially when it first starts the section. But this did not work, I did some testing and even though I placed the if statement in the main body (just above the mainloop) it did not get called, which makes me believe that the system does not keep cycling (ie, like Java) but instead just sits and waits?if(time - $StartTime) > 30) { &RefreshData; $StartTime = time;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TK Timed action
by zentara (Cardinal) on Sep 25, 2012 at 15:30 UTC | |
|
Re: TK Timed action
by randor (Novice) on Sep 25, 2012 at 13:44 UTC |