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

Oh dear, It seems a bit OTT as im only trying to share a pid of a deeper forked child in a daemon.
Anyway, I tried IPC::Sharable and got:
IPC::Shareable::SharedMem: shmget: No such file or directory at /usr/lib/perl5/site_perl/5.6.0/IPC/Shareable.pm line 566 Could not create shared memory segment: at ./duke.pl line 8
(Linux RH 7.2)
Thanks for your help

Replies are listed 'Best First'.
Re: Re: Re: Global variables over many children
by perrin (Chancellor) on Dec 05, 2001 at 08:31 UTC
    Don't use that. Use MLDBM::Sync, or just use a file if that seems like overkill.
      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?
        MLDBM::Sync can share arrays. What's the problem?