localenv is a script for automatically shelling into and out of the environment configuration required to use a local::lib
environment. It's rather like virtualenv for Python; in fact, the activate
script it generates is cribbed mostly from virtualenv for Python.
localenv is designed to work with cpanminus for installing Perl modules.
$ localenv myenv
$ source myenv/bin/activate
(myenv)$ cpanm Bot::BasicBot::Pluggable # or whatever
(myenv)$ perldoc -l Bot::BasicBot::Pluggable
/home/username/myenv/lib/perl5/Bot/BasicBot/Pluggable.pm
(myenv)$ deactivate
$ perldoc -l Bot::BasicBot::Pluggable
No documentation found for "Bot::BasicBot::Pluggable".
- Python 2.4
local::lib
- cpanminus (not strictly required but strongly encouraged)
- Copy the
localenv
script to yourbin
directory and make sure it's executable.