>>>>> "JB" == Jeff Boes <[EMAIL PROTECTED]> writes:
JB> I'm looking for ideas on how to set up a hook which is called *after* JB> an event is processed, *before* Event takes over. (Basically, the JB> event handlers are setting $0 to their current state. I want to hook JB> something in to reset $0 to "Sleeping..." after my event handler is JB> called. Obviously, I could set it at the bottom of every routine.) one idea is to add an extra OO layer around all your event calls. stem effectively does this and those objects can do the pre/post event calls. the object itself contains the real destination callback info and it uses it to make the callback. it could be an object/method pair or a code ref just like event itself uses. another advantage of this extra OO layer is that it can isolate the event API which will allow you to migrate your system to other event loops more easily. uri -- Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com -- Stem is an Open Source Network Development Toolkit and Application Suite - ----- Stem and Perl Development, Systems Architecture, Design and Coding ---- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org