Re: Custom-interval timer not working: what am I missing?
[email protected] (Joshua N Pritikin) Fri, 01 Apr 2005 09:35:06 +0530
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
--=-r2tK+LD5Tzh5Zv3A0p4B Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2005-03-31 at 20:11 -0500, Jeff Boes wrote: > What I determined through experimentation is that you can set up a=20 > one-shot timer event, and then by doing -- >=20 > $e->stop; > $e->at(time + $next); > $e->start; Hrm, looks like a bug? > I dunno why the "stop" call is necessary, but the event won't fire a=20 > second time without it! Can you check the setting of at() between every statement? warn $e->at(); You might also try the same with repeat=3D>0. See if that helps. --=-r2tK+LD5Tzh5Zv3A0p4B Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBCTMhyqcqnlKSmC70RAnRdAKCmset8yYUlPZq0j7Q9QlkV07QyaACgumI0 JUutOmzHMHS0w5Z45VUsRgE= =Ek+S -----END PGP SIGNATURE----- --=-r2tK+LD5Tzh5Zv3A0p4B--