Perl

From wiki
Revision as of 12:08, 5 October 2017 by Rf (talk | contribs)
Jump to: navigation, search

Introduction

Perl has been one of the cornerstones of bioinformatics and is unlikely to give up this role, simply because so many user-contributed modules are avaiable for it.

Best way to install modules

This clearly cpanm, but it has be installed first. However, this is remarkably easy and does not need the clunky cpan interface:

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

Then to keep account of the modules you have, you can use

cpan -l

And then to actually install the outdated modules, you first have to

and then

cpan-outdated -p | cpanm


Installation

New versions of perl follow this configuration before compiling

sh Configure -de -Dprefix=/shelf/modulefiles/tools/perl/5.26.1 -Duseshrplib

As well as installing in the right place, it will also create the perl shared library, which other programs, those who like to sport perl interfaces, might like to use.