CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner: Re: [testerV] Installing a module: Edit Log

Veteran / Moderator

Aug 9, 2012, 2:57 PM

Views: 1894
Re: [testerV] Installing a module

I'm not sure if you need help with installing the module into a custom location, or the proper syntax in the script to load modules located in the custom directory.

To load the module in the script you'll want to use the lib pragma to add the custom directory to the @INC path prior to loading the module.


use lib 'C:/Perl_Modules'; 
use File::Rsync;

To install a module to a custom directory, you need to set the PREFIX option in the call to Makefile.PL

This page covers several methods of installing modules.

(This post was edited by FishMonger on Aug 9, 2012, 2:58 PM)

Edit Log:
Post edited by FishMonger (Veteran) on Aug 9, 2012, 2:58 PM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives