Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are Perl modules installed in Ubuntu?

In Windows, Perl modules are installed in C:/Perl64/site/lib/. What is the corresponding location in an Ubuntu system?

like image 560
prasadbhagwat Avatar asked Nov 29 '22 08:11

prasadbhagwat


1 Answers

To find out where a module is installed, you can use:

perl -E'use Some::Module; say $INC{"Some/Module.pm"};'

You can find out where perl will look (@INC) using

perl -V    # Uppercase "V"

or

perl -E'say for @INC'

I don't know why you'd want to know, so I'm not quite sure what you are actually looking for. A more detailed question could lead to a better answer.

like image 100
ikegami Avatar answered Nov 30 '22 21:11

ikegami