summaryrefslogtreecommitdiff
path: root/_posts/2008-06-30-upgrading-to-perl-5.10.md
blob: 512fd597fa701b1aa9df7f495f456d53b4015537 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
layout: post
summary: In which we upgrade to Perl 5.10.
title: Upgrading to perl 5.10
type: codex
---

Get the list of your installed 5.8 modules:

{% highlight sh %}
% perl -MExtUtils::Installed -e'print join("\n", new ExtUtils::Installed->modules)' > module.list
{% endhighlight %}

then install Perl 5.10:

{% highlight sh %}
% wget http://www.cpan.org/src/perl-5.10.0.tar.gz
% tar xzf perl-5.10.0.tar.gz
% cd perl-5.10.0
% sh Configure -de -Dprefix=/opt/perl -Duserelocatableinc
% make && make test
% sudo make install
% /opt/perl/bin/perl -e 'use feature qw(say); say "hi"'
{% endhighlight %}

and then re-install your modules with <code>cpan \`cat module.list\`</code>.