Sry for this weak title, but I don't have any idea for a better one.
I'm working on a rockylinux. There is perl preinstalled /usr/bin/perl. I installed mod_perl via yum and used apache/perl-status to check on it. Based on perl-status: I can see version + modules:

Embedded Perl version v5.26.3 for Apache/2.4.37 (rocky) mod_perl/2.0.1 +2 Perl/v5.26.3 process 12268, @INC = /MYSTUFF/dev/site/modules/collection /MYSTUFF/dev/site/modules/core /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /etc/httpd /MYSTUFF/dev/site/modules/fallback

1) How do you update mod_perl? Let's just pretend I wanted to update mod_perl to use a newer perl version. Do I have to compile it by myself while linking to my local installed perl?
2) Does this mean mod_perl will by default use my local perl modules (@INC)?
3) Why can I install mod_perl from my package manager without him knowing which perl I got? Does it just look for the system default one and use this one? Then 1) would be a false idea?

Ending this, one more question regarding cpan. Does it matter under which user I install perl-modules using cpan? So far I use root because I get some permission issues e.g. while installing DBI.


In reply to Questions about mod_perl modules and dependencies. by feumw

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.