Hi, I think you have to use
$_[KERNEL]->call($_[SESSION],"two"); instead of 
$_[KERNEL]->yield("two");
See "Synchronous Events" in perldoc POE::Kernel

On Mon, 16 May 2005 15:06:51 +0400
"Laura" <[EMAIL PROTECTED]> wrote:

> Hi, please sorry, i`m newbie in POE and have a lot of 
> problems...
> 
> Why doesn`t variables of HEAP changed?
> There is a little chunk of program(2 subs):
> 
> sub one {
> 
> $_[HEAP]->{VARIABLE}=0;
> for(1..4)
> {
> $_[KERNEL]->yield("two");
> }
> print "VARIABLE: ",$_[HEAP]->{VARIABLE};
> 
> }
> 
> sub two {
> $_[HEAP]->{VARIABLE}++;
> }
> 
> It will print "VARIABLE: 0", but why? I`ve updated it in 
> 'two', it must be 1(cause of ++).
> ---
> Professional hosting for everyone - http://www.host.ru


-- 
WBR dyker
Agava Software

Reply via email to