Nissa
Nissa

Reputation: 215

How to use Perl modules without terminal access?

I am using a web hosting service that only provide FTP access but not terminal (telnet, SSH, etc) access. Perl core is already installed on the server along with a small number of modules (such as LWP::Simple). My script want to use modules that were not installed (such as WWW::Mechanize). Are there any way that I use these modules without normal installation?

Upvotes: 0

Views: 132

Answers (2)

daxim
daxim

Reputation: 39158

Try http://sf.net/projects/cgipan to install modules without shell access.

Upvotes: 2

Dejan Lazar
Dejan Lazar

Reputation: 59

You can put package(something.pm) in your folder structure. I personally like to put them in modules folder.

Then include it in your script. I did it like that:

BEGIN {push @INC, '<path_to_your_project>/modules'};
use <YOUR_PACKAGE>;   <- package name

Upvotes: 1

Related Questions