summaryrefslogblamecommitdiff
path: root/_posts/2008-06-30-upgrading-to-perl-5.10.textile
blob: 8c122a2ff26d28b57e159e10446f306bd30ff786 (plain) (tree)




























                                                                                               
---
layout: post
category: perl
title: Upgrading to perl 5.10
---

Get the list of your installed 5.8 modules:

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

then install Perl 5.10:

{% highlight bash %}
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

{% highlight bash %}
cpan `cat module.list`
{% endhighlight %}