qadwjoh has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Does anyone know how to install modules to a certain - not the default - directory using PPM?

thanks,
A
  • Comment on Installing modules to specific directory with ActivePerl

Replies are listed 'Best First'.
Re: Installing modules to specific directory with ActivePerl
by PodMaster (Abbot) on Jul 16, 2003 at 21:12 UTC
    perldoc PPM says:

    PPM::InstallPackage(``package'' => $package, ``location'' => $location, ``root'' => $root);

    Installs the specified package onto the local system. 'package' may be a simple package name ('foo'), a pathname (P:\PACKAGES\FOO.PPD) or a URL (HTTP://www.ActiveState.com/packages/foo.ppd). In the case of a simple package name, the function will look for the package's PPD file at 'location', if provided; otherwise, it will use information stored in the PPM data file (see 'Files' section below) to locate the PPD file for the requested package. The package's files will be installed under the directory specified in 'root'; if not specified the default value of 'root' will be used.

    If you're talking about the shell utility, it probably has it's own setting.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.