perl library path

I need to retrieve the path where the perl libraries Statistics and Distributions are located. The path is necessary to run the script. I'm on a computer cluster. Can anyone help me?



This answer assumes that the module is in fact installed, but not in a place that perl is looking for.

Generally, the Perl module Statistics::Distributions will be contained in a file called Statistics/ On Linux and similar systems, one can search for these files quickly with the locate command:

locate Statistics/

If it is installed, locate will spit out a line similar to


You can then instruct the perl interpreter to look in this path, too, in various ways. One is to define the environment variable PERL5LIB, i.e. from bash:

prompt> PERL5LIB=/opt/my_perl/lib/ ./

Or you can use the perl -I switch:

prompt> perl -I/opt/my_perl/lib/ ./

Or you can modify the script to use lib; there is more than one way to do it ;-)

If you mean you need the path of a module you're using in a program, that's stored in %INC:

$ perl -MLWP::Simple -le 'print $INC{"LWP/"}'

Need Your Help

Database connection and data saving in SQL Server

database sql-server-2005

I have SQL SERVER database file in Project folder. The same file copy in Debug folder. I attach these two files in SQL Server. File in project folder table contains Null value in all field. But the...

pass data to request method of HttpSocket in CakePHP

php cakephp cakephp-1.3

I'm using the HttpSocket request method of CakePHP to perform some requests to some api. I want to send some parameters with my request. Does anybody know how I can send some parameters using that

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.