Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by Khen1950fx (Canon)
on Jul 07, 2015 at 11:56 UTC ( #1133528=note: print w/replies, xml ) Need Help??


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 (Pilgrim) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1133528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2019-05-20 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (128 votes). Check out past polls.

    Notices?