hello,
i need help calling a privately installed module from a script. my server admin installed
perl with the standard modules and simply no extras, including the LWP::Simple mod i need. (side note: ive asked for it to be installed).
in the meantime, i installed it (libwww-
perl-5.62.tar.gz) into a privately created directory called 'myperl', using the steps decompress, unpack, build, install. on the 'build' step i entered:
$
perl Makefile.PL LIB=/home/virtual/admin/home/httpd/cgi-bin/myperl PREFIX=/home/virtual/admin/home/httpd/cgi-bin/myperl
everything seemed to work well... all mods are there.
my script (which is in cgi-bin/print directory) reads:
require 5;
use LWP::Simple;
cpan says to use one of the following:
1] foo@barbell$ setenv PERL5LIB /path/to/module sets the environment variable PERL5LIB.
2] use lib qw(/path/to/module); used at the top of your script tells
perl where to find your module.
3] foo@barbell$
perl -I/path/to/module
in my script ive typed (one example of many variations ive tried):
require 5;
use LWP::Simple qw(/home/virtual/sbcadmin/home/httpd/cgi-bin/myperl/LWP/Simple.pm);
SIDE NOTE: my server info: Red Hat Linux release 6.0 (Hedwig)
Kernel 2.2.12-20ensim on an i686
is this simply something i cannot do without admin and root privileges or is my syntax incorrect somewhere?
thanks in advance,
sdiva