Zefram writes: > Andy Mortimer wrote: >>I'm sure I'm missing something fundamental here, but ... when should >>timer watchers be destroyed? > > After they've fired, they still exist and can be modified and retriggered. > See the "again" method. You need to explicitly cancel your watchers. > Try this variant of your test program: > > #! perl -w [...] > __END__
Thanks Zefram! That does indeed work fine. I'm sorry I can't answer your question in return ... ;-) Out of curiosity, is there some idiom/pattern/JAPH/etc which uses this behaviour? So far as I can see, I'd find it hard to call ->again on these watchers, since I've not kept a reference to them anywhere; I'd have to go in via Event::all_watchers() and find the one I wanted manually. Or is this just a side-effect of the implementation? Cheers! Andy -- Andy Mortimer [EMAIL PROTECTED] -- Andy walking, Andy tired, Andy take a little snooze -- "Andy Warhol," David Bowie