mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-10-24 00:29:09 +00:00
Perl
Enables local Perl module installation on Mac OS X and defines alises.
Local Module Installation
Perl versions older than 5.14 do not support the local installation of Perl modules natively. This module allows for local installation of Perl modules on Mac OS X in ~/Library/Perl/5.12 by altering the environment.
Usage
For Perl versions older than 5.14, install local::lib.
curl -L -C - -O http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-1.008004.tar.gz
tar xvf local-lib-1.008004.tar.gz
cd local-lib-1.008004
perl Makefile.PL --bootstrap=$HOME/Library/Perl/5.12
make && make test && make install
Install cpanminus:
curl -L http://cpanmin.us | perl - --self-upgrade
Perlbrew
An alternative to the above is to use Perlbrew, which allows for the management of multiple, isolated Perl installations in the home directory.
Aliases
General
peexecutes a one line program in a loop (perl -wlne).pdlooks up Perl documentation (perldoc).
Perlbrew
pbmanages Perl environments.pbalists available Perl versions.pbiinstalls a Perl version.pbllists installed Perl versions.pbotemporarily turns off Perlbrew.pbOturns off Perlbrew.pbsswitches to a Perl version.pbuuninstalls a Perl version.pbxtemporarily sets the Perl version to use.
Functions
prepprovides a grep-like pattern search.psubprovides a sed-like pattern substitution.
Authors
The authors of this module should be contacted via the issue tracker.