On (02/15 12:51), Jay Strauss wrote:

> But nothing happens.  If I change "post" to "yield" then I call the
> processRecord subroutine is called.  Why is that?

post() sends events to specific sessions. yield() sends events to the
current session.  

from perldoc POE::Kernel:

post SESSION, EVENT_NAME, PARAMETER_LIST
post SESSION, EVENT_NAME
    post() enqueues an event to be dispatched to EVENT_NAME in SESSION.  

yield EVENT_NAME, PARAMETER_LIST
yield EVENT_NAME
    yield() enqueues an EVENT_NAME event for the session that calls it.
    yield() is shorthand for post() where the event's destination is the
    current session.

--
Matt Cashner
http://eekeek.org
eek at eekeek dot org

Reply via email to