Two things come to mind. Firstly, are you sure that Apache2::Cookie is being loaded (not just installed on your machine) when your apache server starts up? Perhaps have a look at your startup.pl file?

It *used* to be the case with mod_perl 2 that you could arrange for it to be installed in a separate "Apache2" directory (so that it's modules could co-exist with modules of the same name in mod_perl 1). Then, in order to use those modules, you'd have to say use Apache2 in your code first. This would fiddle with your @INC so that the remaining mod_perl2 modules could be used.

That all stopped when the mod_perl 2 modules were renamed (sometime around 1.99_22 IIRC). Perhaps your server has been set up in this way?


In reply to Re: Convert Apache1 perl to Apache2 by dtr
in thread Convert Apache1 perl to Apache2 by darkwater23

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.