
testerV
Novice
Aug 9, 2012, 2:26 PM
Post #1 of 6
(886 views)
|
|
Installing a module
|
Can't Post
|
|
Hi, I need to use a module but I have to install the module not to a Perl folder but some ware on the network. I thought I could use a few extra lines in my script to use that module. It does not work. Could you help me please? Thanks, testerV #!/usr/bin/perl -w use strict; use warnings; use File::Find; use File::Copy; use File::Rsync; my $modules ='C:\\Perl_Modules\\File-Rsync-0.42'; ## this is the module I want to use ## BEGIN { $scriptPath = "C:\\PERL_TEST\\TestFile_Dirr\\Module.pl"; ## this is my script ## unshift(@INC,"$scriptPath $mod"); print "@INC are paths\n";} |