revlis.nl
Stash of notes about OSS, OSes, virtualization, dev hobby projects &c
March 30, 2018 — 9:50
Author: silver Category: dev Comments: Off
List installed modules:
Pick one :)
perl -V
perldoc <module name>
perldoc perllocal
instmodsh
cpan -[l,a]
or:
perl -e 'use ExtUtils::Installed; foreach (ExtUtils::Installed->new()->modules()) {print $_ . "\n";}'
Install modules in homedir:
- install “local::lib” module
- print settings:
perl -Mlocal::lib
- add to .bashrc:
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
Then there’s also “Perlbrew“.