Gestern war ich auf dem
Swiss Perl Workshop 2013 (der erste seiner Art). Neben der Tatsache, dass ich einen der brillantesten Redner erleben durfte, den ich je gehört habe, nämlich
Damian Conway, konnte ich mich auch kurz mit
Tobi Oetiker unterhalten. Schön an Perl ist, dass selbst die prominenten Mitglieder der Community so herrlich "normal" sind. Nicht falsch verstehen, es sind aussergewöhnliche Menschen, aber dafür ohne Dünkel irgendeiner Form.
Natürlich habe ich auch
viel gelernt.
Etwas, was an mir bisher völlig vorbei gelaufen ist, ist
Perlbrew. Perlbrew erlaubt es auf einfache Weise zwischen mehreren Perlinstallationen per Befehl umzuschalten (so ähnlich wie virtualenv bei Python).
Die Einrichtung ist ganz einfach:
curl -kL http://install.perlbrew.pl | bash
Das geht sehr flott und wenn das fertig ist, kann man
source ~/perl5/perlbrew/etc/bashrc
in die eigene
.bashrc
einbauen oder ausführen und gleich loslegen.
dirk@drusus:~$ perlbrew available
i perl-5.17.10
perl-5.16.3
perl-5.14.4
perl-5.12.5
perl-5.10.1
perl-5.8.9
perl-5.6.2
perl5.005_04
perl5.004_05
perl5.003_07
dirk@drusus:~$ perlbrew install perl-5.16.3
...
Ohne Parameter aufgerufen, gibt perlbrew eine Hilfeseite aus.
available
listet die verfügbaren Perl-Versionen,
install
installiert sie,
use
benutzt sie und
off
schaltet Perlbrew aus. So einfach kann es sein.
dirk@drusus:~$ perlbrew use perl-5.17.10
dirk@drusus:~$ perl -version
This is perl 5, version 17, subversion 10 (v5.17.10) built for x86_64-linux
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
dirk@drusus:~$ perlbrew off
perlbrew is turned off.
dirk@drusus:~$ perl -version
This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
(with 80 registered patches, see perl -V for more detail)
Copyright 1987-2011, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.