Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Checking for an installed Module's version.

by jwest (Friar)
on Oct 03, 2002 at 17:20 UTC ( #202589=note: print w/ replies, xml ) Need Help??

in reply to Checking for an installed Module's version.

If the module isa Exporter- or, at least, if it behaves like most CPAN modules I'm familiar with- you can usually find the version at the command line by:

$ perl -MModule::Name -e 'print $Module::Name::VERSION,"\n"';

Of course, if you're using ExtUtils::MakeMaker to write the make file, the WriteMakefile method has a parameter called 'PREREQ_PM' that lets you specify the modules you need as well as their minimum versions.

Hope this helps!


-><- -><- -><- -><- -><-
All things are Perfect
    To every last Flaw
    And bound in accord
         With Eris's Law
 - HBT; The Book of Advice, 1:7

Comment on Re: Checking for an installed Module's version.
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2015-10-06 16:32 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (155 votes), past polls