Re: Custom-interval timer not working: what am I missing?

2005-03-31 Thread Joshua N Pritikin
On Thu, 2005-03-31 at 20:11 -0500, Jeff Boes wrote: > What I determined through experimentation is that you can set up a > one-shot timer event, and then by doing -- > > $e->stop; > $e->at(time + $next); > $e->start; Hrm, looks like a bug? > I dunno why the "stop" call is necessary, but the eve

Re: Custom-interval timer not working: what am I missing?

2005-03-31 Thread Jeff Boes
When I woke up, Jochen Stenzel was saying: you are calling loop(), don't you? It shouldn't be necessary to use the start() method then ... But my first intuition was to suggest the use of "interval" instead of "at" (just from remembrance). Right; but I don't want the event to run every 5 minutes

Custom-interval timer not working: what am I missing?

2005-03-31 Thread Jeff Boes
Given a timer set up like this: my $x = Event->timer( cb => \&scan_tests, repeat => 1, hard => 0, reentrant => 0, desc => 'Scan tests', at => time + 5, ); Inside "scan_tests" I have co