As I understand it, all perl libraries are stored in /usr/local/lib/perl/

And if there is no access to this directory, is it possible to somehow load the paths to its libraries into the @INC array and how?

    2 answers 2

    No need to modify this variable.

    libraries can be:

    • load with the help of your package manager (yum in Fedor).
    • using cpan, which will set everything up and set all variables.
    • define the environment variable PERL5LIB .
    • use the pragma lib use lib '/home/your_name/perl5_dir'; .
    • load with the help of your package manager (yum in Fedor). using cpan, which will set everything up and set all variables. I rent a hosting service because of this, I can’t not how to execute console commands on it if I had a dedicated server or on my PC, then it is another matter what other methods you described by reading and watching ) - Lecome
    • one
      this (that you do not have access to the console) should be clarified in the question. - KoVadim
    • @Lecome, to install your modules (if they do not pull any special system dependencies and / or do not require special procedures for assembling), it is enough to put them in the main script directory :) Well, or, create a lib directory there, copy the modules into it and in the script write use lib 'lib'; . Consoles are not needed for this. - user6550