Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Khen1950fx (Canon)
on Jul 07, 2015 at 11:56 UTC ( [id://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 (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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-20 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found