Perl 5.10 will be out soon — within a week — and pumpking Rafael Garcia-Suarez will likely release a final release candidate for final testing and polishing. If you have Perl code you care about, it’s worth downloading RC3 to see how well things run with the new version.
If you have a platform more exotic than GNU/Linux or FreeBSD on x86, getting pass or fail results would be wonderful too.
- Download the most recent Perl 5.10 RC from Rafael Garcia-Suarez’s CPAN directory.
- Unpack the tarball to a temporary directory where you can build software.
Configure Perl for building. I used the instructions in the README file and supplied an installation prefix. This is useful for testing, as it installs Perl and its core libraries beneath a single, specific directory:
./Configure -des -Dprefix=/home/chromatic/dev/perl-5.10.0-RC2
- Build Perl. You need a
makeutility, but I assume that most people reading this either are familiar enough with building their software on their own platforms that I don’t have to mention it, or are my parents (Hi, Mom and Dad!) and just like to see what I do during the week:
make make test # wait a few minutes here make install
- Optionally report success or failure with
make nok. Success is most useful on slightly exotic platforms, but failures are interesting on any platform.
Now you have a nice shiny new Perl 5.10 built for your platform (or you’re waiting anxiously for a patch to come out to fix your test failures, but I can’t help you there here). It’s time to test your code with this new version of Perl.
I’ve received a couple of failure reports for Perl 5.10-tobe on my highly experimental P5NCI distribution, so I decided to test it.
First, I added the bin/ directory of my new Perl to my
Then I ran the normal build process:
P5NCI requires one non-core module, Test::Exception, in a couple of tests. That wasn’t available in a fresh Perl, so I decided to install it by running
If you’re a well-experienced Perl hacker, you might have already configured your own user configuration for the CPAN module, in which case you’ll see what I saw. Otherwise, the module will prompt you for some configuration before allowing you to install modules. Proceed as normal.
(If you’re like me, your new Perl will probably pick up a local configuration, in which case CPAN will not prompt you for configuration. This is probably fine and unremarkable if you have anything resembling a recent version of the CPAN module installed.)
After installing the module, I re-ran Build.PL and tested my code as normal:
perl Build.PL ./Build ./Build test
If you run into problems, check the RT queue available from the CPAN page of the distribution you’re trying to install. Most authors expect to receive bugs reported through that interface (though do check the documentation; some authors prefer standard e-mail).
All tests passed for my code. I hope you’re as fortunate.