Hi!
I might be asking for something impossible here, but...
I want to store a big pile of data, preferably stored as a hash, resident in memory so that it can be reached by other scripts. The variable is to contain phrases in different languages, so when I supply an ID and a language code (for example 'phrase005'and 'EN'), the resulting data would be the value for the keys 'phrase005' and 'EN'.

So, script 1 is supposed to create the var. in memory and fill it with data, and to destroy it if necessary.
Script 2 is supposed to read and use the data.
Is it even possible to work like this in Perl?
FastCGI and databases aren't options.
UPDATE: Thank you for all your answers! I will have a look into each of the solutions listed below.
The "database out of question" question is because that the scripts themselves are quite db-intensive. But I guess, it's an option too, since it's about storing it in memory using a quite small db engine...

In reply to One big fat memory resident variable reachable by other scripts by DreamT

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.