[Chicago-talk] Using Storable to exchange data between 2 processes

Jay Strauss me at heyjay.com
Thu Jan 22 22:51:08 CST 2004

Hey that IPC::ShareLite is pretty neat.  Works for me, screw the people on
windows, they can write to a file

----- Original Message -----
From: "Greg Fast" <gdf at speakeasy.net>
To: "Jay Strauss" <me at heyjay.com>
Cc: "chicago-pm" <chicago-talk at mail.pm.org>
Sent: Thursday, January 22, 2004 10:03 AM
Subject: Re: [Chicago-talk] Using Storable to exchange data between 2

> On Wed, 21 Jan 2004 22:29:36 -0600, "Jay Strauss" <me at heyjay.com> wrote:
> > After reading the Storable.pm doc.  I can see how I could store a
> > datastructure to a file, and read from that file in a different process
> > reconstruct that data structure.  But I don't see how you'd do it with
out a
> > file.
> >
> > What I'd like to do is store a datastructure to a place in memory, and
> > (only) that memory from a different process.
> AFAIK you can't just share memory between processes in a
> platform-independant way (there's IPC, but you said you'd like to have
> it work on windows too).
> >From your description, perhaps a DBM file accessed by the two
> processes would work well?  The "writer" can write records to the db
> as they're read, and the "reader" can just open the db read-only.
> I don't know if windows would give you "sharing violations" (bah).
> --
> Greg Fast
> http://cken.chi.groogroo.com/~gdf/

More information about the Chicago-talk mailing list