フォークを使用するスクリプトを perl で作成しており、個別のプロセス間で変数を共有する必要があります。現在、私はうまく機能しているIPC::Shareableを使用しています。ただし、ハッシュのハッシュでは機能しないようです。例えば:
$todo->{$next_todo_key}{'urls_hash'} = \%temp;
or
$todo->{$next_todo_key}{'url_idlist'} = $url_idlist;
エラーが表示されますIPC::Shareable::SharedMem: shmget: File exists
at /usr/lib/perl5/site_perl/5.8.8/IPC/Shareable.pm line 566
Could not create shared memory segment: File exists
。
これを修正する方法を知っている人はいますか?または、ハッシュのハッシュを保存できる同様のモジュールはありますか? ありがとう!