Perl 5.10 beta Everywhere

Post added by

Blogspot / #perl


I decided to install Perl 5.10 on all my machines after the thrill of installing ActivePerl 5.10 beta on my Windows VM last night. Yes yes, it is true that strange things will thrill me.

I downloaded and compiled devel.tar.gz from for my Linux install. I just need to remember that the binary is called perl5.9.5 and use 5.010; will fail. I need to do use feature qw(:5.10); on that machine. Good to know, that was mostly an experiment.

The Mac gets the beta. I was so lazy tonight. How lazy was I? Rather than get up and walk eight feet to the Mac I did the install via ssh.

$ ssh
$ elinks
$ hdiutil attach ActivePerl-
$ sudo installer -pkg /Volumes/ActivePerl-5.10/ActivePerl-5.10.pkg/ -target / -verbose -dumplog > ~/install.log 2>&1
$ /usr/local/ActivePerl-5.10/bin/perl -E 'say "Hello";'

Then I fired up vim and added some lines to my ~/.bash_profile:

export ACTIVEPERL=/usr/local/ActivePerl-5.10
$ . ~/.bash_profile
$ which perl

Then I adjusted the settings in my vimrc so that Perl files are associated with the beta. That’s a bit of specialized yet trivial monkey business though, so I won’t bother to show it.

Oh yeah, I nearly forgot to unmount the dmg.

$ hdiutil detach /Volumes/ActivePerl-5.10

Then I was so ridiculously lazy that I just spent 20 minutes describing a 3 minute process, just in case I need to install with a dmg via ssh again in the future.