in reply to Installing modules in personal webspace

I'm chipping in to share my sentiment on perl modules.

How I wish every perl module is self-contained so that you can copy and paste the code for the required module and upload it to your desired directory in the server.

That way, you need not worry about whether the hosting company is going to install it for you. A case in point are modules like CGI::EncryptForm and CRYPT::HCE_SHA. If your webhosting company has them, all the better. If not, you have the option tocopy-paste the code and save it into your desired directory (correct me if I'm wrong).

  • Comment on Re: Installing modules in personal webspace

Replies are listed 'Best First'.
Re: Re: Installing modules in personal webspace
by iburrell (Chaplain) on Mar 23, 2004 at 20:08 UTC
    Most pure Perl modules work just like that. Copy the source files to the right location in any directory in @INC and the module will get loaded. It doesn't matter if that is /usr/lib/perl5/site_perl, /home/foo/perl/lib, or "../lib".

    Storable is a binary extension. It has a dynamic library that needs to be loaded. The building and placement of those is more particular. It is still possible to install binary extensions in a personal directory. It is more difficult to build the library on another machine because the build environment needs to be the same.

Re: Re: Installing modules in personal webspace
by Anonymous Monk on Mar 24, 2004 at 05:41 UTC
    That's foolish sentiment common among cash-strapped-juveniles.