I can pass it along as an argument, but then event will $_[KERNEL]->post(LADBI where i can`t pass that ARG...

thx

On Tue, May 17, 2005 at 05:46:13PM +0400, Laura wrote:
Hi, thank you.
I can`t do it in another event, cause i have variables in main event that i need to save...


sub one {

...

foreach(keys %{$links})
{
$k={$#links}=$heap->{VARIABLE};
$_[KERNEL]->yield("next_event",@{$links}{$_}); # then i need to insert that data into DB and increment $heap->{VARIABLE}++. Then return that variable back and save in $k next iteration.
}


}

Why not just have the event that handles the return from the database do
the work with the data? If you need information from the main event then
either stick it in the HEAP or pass it along as an argument to the yield.


--
Matt S Trout Website: http://www.shadowcatsystems.co.uk
Technical Director E-mail: mst (at) shadowcatsystems.co.uk
Shadowcat Systems Ltd.

--- Professional hosting for everyone - http://www.host.ru

Reply via email to