2009/11/30 David Schmidt <zivildie...@gmail.com>:
> Hello
>
> I would like to execute some Code after a certain amount of time has
> passed (then restart the timer but with a different time value)


> Basically I am looking for something as simple as
>
> my $do_it = { ... };
> use MyTimer;
> my timer = MyTimer->new($delay, $do_it);
>
> and inside of $do_it I intend to start another timer.
>
> is there any simple class that does what I want? I failed to find it.


Would sleep() do? (http://perldoc.perl.org/functions/sleep.html)

-- 
Erez

"The government forgets that George Orwell's 1984 was a warning, and
not a blueprint"
http://www.nonviolent-conflict.org/ -- http://www.whyweprotest.org/

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to