On Mon, 16 May 2005 19:21:36 +0400
"Laura" <[EMAIL PROTECTED]> wrote:

> Yes, I use call, but SuccessEvent then post to next event, 
> that don`t work :(
Why can't you use call() instead of post() in SuccessEvent?

> 
> thank you very much, Aleksandr!
> 
> 
> On Mon, 16 May 2005 18:55:02 +0400
>   Pronichev Alexander <[EMAIL PROTECTED]> wrote:
> > Have you read perldoc POE::Kernel "Synchronous Events" 
> >section? :)
> > The point is that the post() method means put the 
> >message in POE queue and POE will handle it (maybe later) 
> >using FIFO. So you may write:
> > $_[KERNEL]->call($LADBI_ALIAS => "selectall",....); 
> > call() methods means bypass FIFO and send event "right 
> >now".
> > 
> > On Mon, 16 May 2005 17:22:47 +0400
> > "Laura" <[EMAIL PROTECTED]> wrote:
> > 
> >> On Mon, 16 May 2005 15:21:25 +0400
> >>   Pronichev Alexander <[EMAIL PROTECTED]> wrote:
> >> > Hi, I think you have to use
> >> > $_[KERNEL]->call($_[SESSION],"two"); instead of 
> >> > $_[KERNEL]->yield("two");
> >> 
> >> Alexander, Thank you very much!
> >> This simple example is working, but if i try to add for 
> >> example LaDBI post inside called sub, it doesn`t chages 
> >> again.
> >> 
> >> sub one {
> >>   
> >>   $_[HEAP]->{VARIABLE}=0;
> >>   for(1..4)
> >>   {
> >>   $_[KERNEL]->yield("two");
> >>   }
> >>   print "VARIABLE: ",$_[HEAP]->{VARIABLE};
> >>   
> >> }
> >>   
> >> sub two {
> >>   $_[KERNEL]->post{post($LADBI_ALIAS => "selectall",
> >> SuccessEvent => "display_results",
> >> HandleId     => $dbh_id,
> >> Args         => [ $_[HEAP]->{sql} ] );
> >> }
> >> 
> >> sub display_results {
> >>   $_[HEAP]->{VARIABLE}++;
> >> }
> >> 
> >> 
> >> Spasib.
> >> ---
> >> Professional hosting for everyone - http://www.host.ru
> > 
> > 
> > -- 
> > WBR dyker
> > Agava Software
> 
> ---
> Professional hosting for everyone - http://www.host.ru


-- 
WBR dyker
Agava Software

Reply via email to