http://qs321.pair.com?node_id=1133528


in reply to [Solved]: How to check compatibility of perl modules with Perl version

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.
  • Comment on Re: [Solved]: How to check compatibility of perl modules with Perl version
  • Download Code

Replies are listed 'Best First'.
Re^2: [Solved]: How to check compatibility of perl modules with Perl version
by Perl300 (Friar) on Jul 07, 2015 at 14:31 UTC
    Thank you thanos1983 and Khen1950fx. The minimum version is really important to know. Thanks for mentioning it here.
      That module comes with a frontend, perlver - The Perl Minimum Version Analyzer