Checking versions on the command line

D

David Morel

Hi,

What are the command lines that you use to check the version of perl
you have, and to check the version of a particular module? Thanks.
 
T

Tad McClellan

David Morel said:
What are the command lines that you use to check the version of perl
you have,


perl --version

and to check the version of a particular module?


Include the module, and output its $VERSION package variable:

perl -mLWP::Simple -e 'print $LWP::Simple::VERSION'
 
S

Sisyphus

David said:
Hi,

What are the command lines that you use to check the version of perl
you have, and to check the version of a particular module? Thanks.

perl -e 'print $]'
perl -MModule::Name -le 'print $Module::Name::VERSION'

Cheers,
Rob
 
J

James Willmore

What are the command lines that you use to check the version of perl
you have, and to check the version of a particular module? Thanks.

perl -v
and
perl -Mname_of_module -e 'print "$name_of_module::VERSION\n"'

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
Radioactive cats have 18 half-lives.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top