cpanm --test-only
I also recommend using Perlbrew which will allow you to install and manage different versions of Perl, so you could still develop on a newer Perl and smoke test on 5.10.
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
| [reply] [d/l] [select] |
| [reply] |
Thanks you Jeffa and Anonymous monk. Specially the CPAN Testers Matrix link went right into my bookmarks :-)
| [reply] |
| [reply] [d/l] [select] |
CPAN won't install a module if it's not compatible with your perl version. If the module requires 5.10.1, it'll tell you and stop. What's more important to me is the minimum version
of perl. For example,
Perl::MinimumVersion requires a minimum of 5.006, so you can check it like this:
#!/usr/bin/perl -l
use strict;
use warnings;
use Perl::MinimumVersion;
my $obj = Perl::MinimumVersion->new(
"/usr/local/share/perl5/Perl/MinimumVersion.pm",
);
print $obj->minimum_version;
Unfortunately, it only works with files on your disk: files, scripts, code, modules, etc.
| [reply] [d/l] |
Thank you thanos1983 and Khen1950fx. The minimum version is really important to know. Thanks for mentioning it here.
| [reply] |
That module comes with a frontend, perlver - The Perl Minimum Version Analyzer
| [reply] |