in reply to Re^2: how to create shared hashes of arrays
in thread how to create shared hashes of arrays

From what I've read the shared hash should be almost no different.. so long as your constructing it correctly.. and what not.. post some sample code so we can see what's going on.
  • Comment on Re^3: how to create shared hashes of arrays

Replies are listed 'Best First'.
Re^4: how to create shared hashes of arrays
by sumit_nagpal (Initiate) on Jul 09, 2004 at 13:43 UTC
    yes there is difference we can not assign it a reference unless we share that hash location for hash of array $hash{$key} = &share([]) (my case) then we can do ---> $hash{$key} = $arr_ref; for hash of hash $hash{$key} = &share({}) then we can do ----> $hash{$key}{next_key} = "xxx"; Thanks Sumit