One way I commonly do it is using $kernel->delay(), and inside the event
handler that I'm delaying, simple add a $kernel->delay() at the end of
that event... so basically what's happening is after a delay, my event is
running.  After the event is just about to complete, i'm adding another
delay for the next invocation... does that kinda make sense?

-a


On Thu, 20 Dec 2001, Matthew Pollack wrote:

> I'm kind of new to POE, so please bear with me.  I have searched the
> archives of this mailing list, but have not yet come upon an answer to
> my question.  I am trying to create a recurring, timed event to poll a
> serial port for incoming data (using Device::SerialPort).  However, I
> haven't been able to come up with a method for creating the timing loop,
> e.g. I'd like to check for data every 200 milliseconds.  I tried using
> $_[KERNEL]->delay(...) but I cannot figure out how to make the evert
> reccur.
>
> Please help,
>     Matthew Pollack
>
>
>

Reply via email to