Perl check module version installed


















Just contact us! Your email address will not be published. This site uses Akismet to reduce spam. Learn how your comment data is processed. July 26, March 24, Dave 0 Comments Perl , programming , scripting. There are many ways to check versions, some simpler than others.

It fails gracefully in the case that the module is not installed: Check Perl Module Version. Loading internal null logger. Perl module features and behaviour can change from version to version and so knowing the version number of an installed Perl module can be useful in several scenarios. Below are three different command line methods for finding out the version number of an installed module that work on Bash and Windows Powershell. So fire up the terminal and get typing!

The resulting output looks like this:. Using a one-liner avoids the need to use CPAN, plus it neatly returns only the version number, which can easily be used for further processing:. Admittedly somewhat of a hack, but this will usually work. The output can be a messy, but you can usually locate the version number. To compare and check installed Perl modules with respect to given modules with its version.

To list Perl modules that comes preinstalled with the standard Perl package and installed from outside. Both modules reveal lots of information about each installed modules like installation date, directory, module version etc.

He shares and helps engineering students and IT professionals in academics and career consulting.



0コメント

  • 1000 / 1000