Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Find perl module version from command-line

by ambrus (Abbot)
on Feb 21, 2012 at 16:32 UTC ( [id://955350] : note . print w/replies, xml ) Need Help??


in reply to RE: Find perl module version from command-line
in thread Find perl module version from command-line

A nice shortcut is

perl -e 'use Some::Module 9e9'
It is worth noting that perl -MSome::Module=9e9 -e1 works only if that module is Exporter-based, because -M passes that number as an import argument instead of a version number, but then Exporter interprets it as a version number.