[Chicago-talk] Using Storable to exchange data between 2 processes
gdf at speakeasy.net
Thu Jan 22 10:03:10 CST 2004
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 to
> reconstruct that data structure. But I don't see how you'd do it with out a
> What I'd like to do is store a datastructure to a place in memory, and read
> (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).
More information about the Chicago-talk