On my unix box I want to load some data into memory using one program
and then retrieve it using another.
Anyone have any examples of how I can load that to my unix machine
memory?
Mike
In Unix, you have to create a shared region of memory and coordinate
access to it somehow. Oracle does this with their SGA. There may be a
way to do this using a CPAN module but it all depends on how much memory
you're talking about. Oracle requires special OS configuration, at
least on Solaris, to allow the OS to permit an application to allocate
shared memory in the GB range. Don't know how you'd do this in Linux.
How you coordinate access the the shared memory once it's created is
something you'll have to work out. This is a rather advanced
programming topic. You'll have to do a lot of reading and trial coding
to get something you want. Perl may not be the best tool for this.
The modules I got when I searched the CPAN library span are for using
shared memory for persistence between sessions. Not really what you're
looking for since it's being used to implement sessions.