hi, Philip, thank you for response.

It must be a global hash, in TWO should be the same as ONE


On 09-Jun-2005 Laura wrote:
I have a $heap->{HASH}->{} in the first package. I need it in the second one, but how to merge it ?

Just to send it to the second and then postback ?


Which hash has priority?

You can get a sessiones heap with $session->get_heap();

They can be merged with


$merged = { %$heap, %$other_heap};

If you only want the HASH key merged :

$heap->{HASH} = { %{$heap->{HASH}}, %{$other_heap->{HASH}};

BTW : $heap is yours to do with as you please. You don't need to hide
your values in a sub-key.

-Philip


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

Reply via email to