Giter Site home page Giter Site logo

perlswitcher's Introduction

Perlswitcher

Perlswitcher - Switch between system Perl + local::lib and user Perl

This is a cheap script to switch between system Perl with local::lib and user Perl (installed by Perlbrew) without local::lib. Environment variables are set so that cpanm always knows where to install packages (local::lib or user Perl).

Nothing will be installed system-wide, no root permissions are required. Installing Perl packages manually in the system Perl as root might create chaos and mess up the system. Using this script, packages can be installed locally without ever having to become root and if some packages are causing trouble in a user Perl, that Perl installation can simply be deleted.

INSTALLATION

Install Perlbrew (http://perlbrew.pl/).

$ mkdir ~/perl5/userperls

Copy this script to ~/perl5/userperls/bashrc

$ echo '. ~/perl5/userperls/bashrc' >>~/.bashrc

Add symlinks for directories to be prepended to $PATH. Their names must begin with "path-".

$ cd ~/perl5/userperls/
$ ln -s ~/perl5/bin path-bin
$ ln -s ~/perl5/perlbrew/bin path-perlbrew-bin

UNINSTALLATION

Remove this script from your "~/.bashrc".

Delete the "userperls" directory.

USAGE

Switch to a user Perl installed by Perlbrew:

$ perlswitch perl-5.18.4

Find out if user Perl or system Perl is currently being used:

$ perlinfo

Switch back to system Perl:

$ perlswitch

Use perldoc to see some examples:

$ perldoc ~/perl5/userperls/bashrc

License

Please see the file called LICENSE.

perlswitcher's People

Contributors

c0xc avatar dennisfen avatar

Stargazers

Nick Morrott avatar Joerg Fallmann avatar Paul Fenwick avatar David Mertens avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.