in reply to Getting a self-referencing script URL (was: Seeking wisdom again...)

re not installing modules: You can install the Text::Template module in a directory within your own home directory, and then use the following at the start of your code:
use lib '~myname/path/to/perl/modules' use Text::Template
use lib simply adds the list of paths that you specify to the front of @INC and thus they get searched first for any modules. While you can't easily maintain the modules with CPAN, you can still grab the source for each, and specify YOUR directory for all install work. Screw your naughty sysadmin :D

Replies are listed 'Best First'.
Re: Re: Seeking wisdom again...
by ZZamboni (Curate) on Feb 28, 2001 at 02:58 UTC
    Just as an additional note: instead of the use lib you can set your PERL5LIB (or PERLLIB) environment variable to the directory where your modules are installed. I use $HOME/lib/perl. So when you run Makefile.PL on a new module, do it like this:
    perl Makefile.PL PREFIX=$HOME/lib/perl
    and it will automagically install everything under that directory. If you want to use the CPAN module, during the first run, you can configure it so it automatically passes the PREFIX argument to Makefile.PL.

    --ZZamboni