Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Installing a module without administrative privilege?

by tobyink (Abbot)
on Sep 24, 2012 at 22:36 UTC ( #995448=note: print w/ replies, xml ) Need Help??

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\") 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

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'

Comment on Re: Installing a module without administrative privilege?
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995448]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-12-28 16:21 GMT
Find Nodes?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?

    Results (182 votes), past polls