in reply to Re: Re: Re: Global variables over many children
in thread Global variables over many children

Using MLDBM::Sync worked perfectly, thanks. Up until the point I realised im gonna have to share an array :)
So back to the shared memory question, whats going wrong there?
  • Comment on Re: Re: Re: Re: Global variables over many children

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Global variables over many children
by perrin (Chancellor) on Dec 06, 2001 at 11:36 UTC
    MLDBM::Sync can share arrays. What's the problem?
      Oh right. Can you give me a hint how it does that, I can only see how to do hashes at the moment. Simply replacing the hash with array gives:
      TIEARRAY not handled by object MLDBM::Sync at /usr/lib/perl5/site_perl +/5.6.0/MLDBM/Sync.pm line 60.
      Thanks
        Just put an array ref in one of the hash values. It works like MLDBM. $tied_hash{my_array} = [1,2,3];