Bryan R Harris 写道:

I'd love to use the Curses module for an upcoming script, but I don't have
root on the machines it will be used on.  Is it possible to use the module
without installing it?


From perldoc,
       How do I keep my own module/library directory?

When you build modules, use the PREFIX and LIB options when generating Makefiles:

           perl Makefile.PL PREFIX=/mydir/perl LIB=/mydir/perl/lib

then either set the PERL5LIB environment variable before you run scripts that use the modules/libraries (see perl-
       run) or say

           use lib '/mydir/perl/lib';

       This is almost the same as

           BEGIN {
               unshift(@INC, '/mydir/perl/lib');
           }

except that the lib module checks for machine-dependent subdirectories. See Perl's lib for more information.


--
Jeff Pang
http://home.arcor.de/jeffpang/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to