in reply to Keeping hash table in memory

I'm not sure if it what you need, but in a similar case I used IPC::ShareLite for defining a shared memory block.

You can have a simple program to create the shared block, load it and then sleep; your main program can access the stored variable(s) as long as at least one process uses the shared block.

Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.

Replies are listed 'Best First'.
Re^2: Keeping hash table in memory
by perrin (Chancellor) on May 15, 2008 at 16:32 UTC
    IPC::ShareLite is pretty slow for large amounts of data. It runs the entire thing through Storable every time you read or write it.