Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995448]
[LanX]: Jeez ... the new location for GPW so remote that hotels are cheaper than AirBnB oO
[LanX]: ... and I can get faster to the Dutch PW or French PW ...
LanX ...(by train from Frankfurt)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2018-03-19 11:50 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.