Perl module versions

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: === Single module example === Example: Determine the version number of ''XML::Parser''. $ '''perl -MXML::Parser -e 'print "$XML::Parser::VERSION\n"'''' === Multiple module example === ...)
Line 15: Line 15:
XML::SAX::Expat 0.37
XML::SAX::Expat 0.37
XML::Simple 2.14
XML::Simple 2.14
 +
 +
== Links ==
 +
 +
* [http://helpdesk.wisc.edu/middleware/page.php?id=4222 Finding a Perl Module Version]

Revision as of 19:05, 28 March 2008

Single module example

Example: Determine the version number of XML::Parser.

$ perl -MXML::Parser -e 'print "$XML::Parser::VERSION\n"'

Multiple module example

Example: Determine the version numbers of XML::Parser, XML::SAX, XML::SAX::Expat, and XML::Simple.

$ for MODULE in XML::Parser XML::SAX XML::SAX::Expat XML::Simple ; do
> perl -M${MODULE} -e "print \"$MODULE \$${MODULE}::VERSION\n\""
> done
XML::Parser 2.34
XML::SAX 0.14
XML::SAX::Expat 0.37
XML::Simple 2.14

Links

Personal tools