[フレーム]
Last Updated: February 25, 2016
·
2.078K
· ksi

Check installed version of a perl module

Add the function to your bash-profile (it's one line starting with perl):

function perlver {
 lib=${1//::/\/}
 perl -e "use 1ドル; printf(\"%s\n\tPath: %s\n\tVersion: %s\n\", '1ドル', \$INC{'$lib.pm'}, \$1ドル::VERSION);" 2>/dev/null || echo "1ドル is not installed"
}

And run (for any module, e.g. List::Util)

perlver List::Util

AltStyle によって変換されたページ (->オリジナル) /