30 April 2008

Define the current version of a perl module

To get the current version of an installed perl module, the following command can be used:
perl -le 'use MODULE_NAME; print MODULE_NAME->VERSION'
With MODULE_NAME the name of the wished perl module.

For instance with File::Temp it gives:
perl -le 'use File::Temp; print File::Temp->VERSION'

No comments:

Post a Comment

Thank you for your visit, let's share your point of view: