I read through the source code for this module... There are at least two bugs I can see where any parameters you pass in the call to "tie" will not be used.

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)


In reply to Re: Win32::MMF::Shareable tie namespaces don't seem to work? by meetraz
in thread Win32::MMF::Shareable tie namespaces don't seem to work? by gowen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.