If the issue really is a difference between my() and our(), then the only thing I can think of is to check your Apache logs for when the server is first starting up and look for warning messages that look like "variable %cache will not stay shared at...." (you are using warnings, right?) This is something you should not normally see in a handler module, unless for some bizarre reason this module were being processed by Apache::Registry. I confess to not being a mod_perl expert, but I don't see how that could actually happen. Nonetheless, I would check your Apache configuration files to make sure this is not the case, and also check to make sure that you're not useing or requireing this My::Apache::UserCache module from within a subroutine in some other module.

In reply to Re: package scoped my() variable in module under mod_perl 5.6 vs 5.8 by Errto
in thread package scoped my() variable in module under mod_perl 5.6 vs 5.8 by njaph

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.