ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Using Shared Memory from PHP
Subject:   ipc with perl
Date:   2004-05-17 06:42:56
From:   cluedon
since this showed up on perl.com with a php title I thought I'd post some information about how to do this sort of thing with perl.

check out http://search.cpan.org/~maurice/IPC-ShareLite-0.09/ShareLite.pm

example code:

$share = new IPC::ShareLite( -key=>1971,
-destroy=>'no' ) or die $!;

$share->store("This is going in shared memory");

$str = $share->fetch();