http://www.perlmonks.org?node_id=995448


in reply to Installing a module without administrative privilege?

Yes, you can. Exactly how easy it will be depends on which module. A pure Perl one should just be a matter of downloading the pm file, saving it with an appropriate name (e.g. for module Foo::Bar, use filename "C:\MyStuff\lib\Foo\Bar.pm") and then including the following at the top of your script:

use lib 'c:/MyStuff/lib';

Or run Perl with a command-line option telling it the location of your libraries.

perl -Ic:\MyStuff\lib myscript.pl

For XS modules that require compiling, it's more of a challenge, but assuming you have a compiler, ultimately possible.

Of course, most modules have dependencies on other modules, so you'd need to make sure they are installed too.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'