in reply to When modules install in perl5

My shared-hosting provider uses cPanel and allows installation of modules (including modules that require compilation) thru the cPanel interface (or manually thru ssh access) into the ~/perl5/ hierarchy. In my host's cPanel help describing how to install and access local modules, it explains that I need to either use the shebang #!/usr/bin/perlml, which is set up to automatically look in the locally-installed directory for modules, or to use cPanelUserConfig;, which also tells perl where to find local modules. Your host may be different, but my guess is that they have documentation for how they expect you to install and access locally-installed perl modules.

Replies are listed 'Best First'.
Re^2: When modules install in perl5
by cristofayre (Sexton) on Sep 26, 2017 at 16:50 UTC

    Yep, those are the exact lines that are confusing me. In the end, I didn't have to use either in my scripts. Just used "#!/usr/bin/perl" ... and it still found files that CPAN installed in the "~/perl5" folder heirarchy. So what this actually relates to I do nt know. Still, it works. That's all I'm worried about!