in reply to Win32::MMF::Shareable tie namespaces don't seem to work?
You should contact the author and let him know what is happening.
I think pushing onto a shared array would have to be done like this:
if ($ns->lock()) { my $var1 = $ns->getvar('var1'); push (@$var1, 'another item'); push (@$var1, 'yet another'); $ns->setvar('var1', $var1); $ns->unlock(); }
However, that seems to trigger a bug somewhere too.
FWIW, you should be able to use the "reuse => 1" parameter to warn yourself of the problem you were having (creating a new namespace under a different name when you meant to open an existing namespace)
|
|---|