After a few more attempts at leaning on F5, I am indeed getting multiple "Initializing"-lines in the logfile.
Then this occurred to me:
root@myserver:/usr/local/lib/site_perl/U2D# ps aux | grep apa root 9546 0.0 0.3 148856 9920 ? Ss 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9549 0.0 0.3 173424 9880 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9550 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9551 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9552 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9553 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9618 0.0 0.3 173424 9860 ? S 13:19 0:00 /usr/ +sbin/apache2 -k start root 9723 0.0 0.0 7624 920 pts/0 S+ 13:20 0:00 grep +apa root@myserver:/usr/local/lib/site_perl/U2D# grep Initializing /var/www +/testSharing.log 02-08-2011 13:19:38:736 9549-172922688: Initializing fruits. 02-08-2011 13:19:39:361 9550-172922688: Initializing fruits. 02-08-2011 13:19:39:426 9551-172922688: Initializing fruits. 02-08-2011 13:19:39:457 9552-172922688: Initializing fruits. 02-08-2011 13:19:39:480 9553-172922688: Initializing fruits. 02-08-2011 13:19:39:499 9618-172922688: Initializing fruits.
Which leads me to think that for each running instance of apache2, the variable will have to be initialized at least once. Or is that too shortsighted?

In reply to Re^2: Threaded MPM Sharing Variables (this time with complete test code) by Neighbour
in thread Threaded MPM Sharing Variables (this time with complete test code) by busymeister

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.