zdzieblo has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone confirm/deny that global variables added with the aid of 'PerlAddVar MasonAllowGlobals $disaster' are shared between apaches virtual hosts?

Replies are listed 'Best First'.
Re: Mason and potential disaster discovery
by perrin (Chancellor) on May 29, 2009 at 14:44 UTC
    VirtualHosts normally share a Perl interpreter. You can set up mod_perl2 to run separate ones for each VirtualHost, but it will use a lot more memory. It would be better to fix your code.
Re: Mason and potential disaster discovery
by Anonymous Monk on May 29, 2009 at 03:13 UTC
    global means they're shared
      umm.. global also means not shared, imagine script a.pl and b.pl, they both got globals in them but it doesn't necessarily mean that a.pl can read b.pl's data ;-)
        If they're running under apache/mod_perl, it means they're shared.