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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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



FishMonger
Veteran / Moderator

Aug 9, 2012, 2:57 PM


Views: 1368
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.

example

Code
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.
http://www.perlmonks.org/index.pl?node_id=128077


(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