O'Reilly logo

Penetration Testing with Perl by Swizec Teller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CPAN minus

CPAN minus is a low-memory, zero-configuration script used to download, unpack, build, and install Perl modules from CPAN. CPAN minus makes installing Perl modules so much easier. To install it, we can use curl:

curl -L http://cpanmin.us | perl - --sudo App::cpanminus

This will create a new executable file in /usr/local/bin by default, named cpanm. Now, we can install any Perl module using cpanm, like this:

cpanm Module::Name

Let's test this for the Regexp::Debugger Perl module we previously mentioned:

root@80211:~ # cpanm Regexp::Debugger
--> Working on Regexp::Debugger
Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Regexp-Debugger-0.001020.tar.gz ... OK
Configuring Regexp-Debugger-0.001020 ... OK
Building and testing Regexp-Debugger-0.001020 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required