Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Win32::MMF::Shareable tie namespaces don't seem to work?

by meetraz (Hermit)
on May 28, 2004 at 20:42 UTC ( [id://357369]=note: print w/replies, xml ) Need Help??


in reply to Win32::MMF::Shareable tie namespaces don't seem to work?

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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://357369]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-23 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found