Created
December 30, 2015 18:37
-
-
Save komalsrathi/9073be2af6100a47a15e to your computer and use it in GitHub Desktop.
Get version of Perl module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage bash get_module_version.sh MODULENAME | |
# module name as first argument | |
mod=$1 | |
# get version | |
perl -M$mod -e "print \"$mod: \$$mod::VERSION\n\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment