Gossamer Forum
Home : General : Perl Programming :

novice loading package question

Quote Reply
novice loading package question
hey, i have just bought a hosting account with netfirms and my cgi scripts wont run coz their server is set up differently than what i had on my pc using apache. they problem is with the loading of packages like digest and http::date.

my scripts are set up to load them like this:
#!perl -T

use CGI;#this works
use DBI;#this works
use strict;#this works
use HTTP::Date; #this doesnt works
use Digest::MD5 qw(md5 md5_hex md5_base64); #this doesnt works

this might or might not be important:
LD_LIBRARY_PATH=/usr/local/nf/lib/nfsflock

how do i load the packages i need?

thanks
Pedge
Quote Reply
Re: [pedge] novice loading package question In reply to
Hi,

You could ask your host to install those modules for you. If they won't, you could find a host who will, or try and install the modules locally (which can be tricky if you don't have ssh access).

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] novice loading package question In reply to
ok i spoke to them and they dont support them nor i can install them myself.
these are the modules i need:

Digest::MD5 qw(md5 md5_hex md5_base64);
HTTP::Date;
POSIX qw/strftime/;
CGI::Lite;
Time::CTime;
Time::JulianDay;
Text::Template;
Time::DaysInMonth qw();

i can copy these modules and put them into a local directory and they all work except for Digest::MD5.
does anyone have any suggestions on how to get it to work from a local folder?
Quote Reply
Re: [pedge] novice loading package question In reply to
did you change your codes from use to require?
========================================
Buh Bye!

Cheers,
Me