I need to test perl script on a remote server. I tried to run it, but I got an error
Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .
So, I downloaded the DateManip.pm file and tried to copy it to one of the specified locations. But I do not have permission to copy the file in any of these places. Is there a way that I can have this * .pm file in my own directory and call it from there or should I put it in one of these places?
- DateManip.pm, , , - , , , perl script, :
use FindBin qw($Bin); use lib "$Bin/<relative_path_to_module>";
<relative_path_to_module> - , DateManip.pm. , -../lib,
<relative_path_to_module>
use FindBin qw($Bin); use lib "$Bin/../lib";
Perl ( ) . :
./your_program.pl <= "use DateManip" ./DateManip.pm
Date:: Manip, :
./your_program.pl <= "use Date::Manip" ./Date/ ./Date/Manip.pm
Source: https://habr.com/ru/post/1761703/More articles:Dispatcher against multithreading - multithreadingquestion about virtual methods in java - javaUsing a web service from C ++ / CLI - c #addJavascriptInterface: object method not found - androidдобавить все ключи в словарь в С# - dictionaryChanging an ASP.NET Login Database - databaseHow can I get a Haskell installation to read in Cygwin? - haskellChanging text at points in a text field using CSS / Javascript - javascriptWhat parts of asp.net, C #, and the database should be used to create a forum like stackoverflow? - asp.netDifferences between Oracle hash and tomcat md5? - oracleAll Articles