Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,
I am working on perl script where two different process tries to write in share variable. The module I use in our program is IPC::Shareable.
When I try to run my program the below error comes.
IPC::Shareable::SharedMem: shmget: File exists at //ms/dist/perl5/PROJ/IPC-Shareable/0.60/lib/perl5/IPC/Shareable.pm + line 566 Could not create shared memory segment: at /ms/dev/bondtrading/test_harnesses/ddr/ddr_perf/NMTest/CPS_DDD_Subs +cription.pm line 169

I did clear all shared variable memory using ipcrm command but still I am getting this error.
I would appreciate if someone could throw some light in it.
Thanks in Advance
Darshan.

Edited by planetscape - changed bold to code tags

( keep:0 edit:14 reap:0 )

Replies are listed 'Best First'.
Re: Issue with shared variable
by shmem (Chancellor) on Sep 21, 2006 at 16:32 UTC
    You must have an error at line 17. Or at line 169. Have you seen How do I post a question effectively?

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}