in reply to Identifying version of Perl Module: Getopt::Std

I've found it a common requirement to detemine which version of a module is installed (and even which of a number of installed versions perl will actually use). To this end I use the following bash function (it's set in my .bashrc)

pmv () { perl -M$1 -e "print \$$1::VERSION . qq/\n/;" }

It's very simple then to retrieve the version number by just supplying the module name as the argument to the function:

$ pmv Getopt::Std 1.10 $

It ought to be easy enough to convert this to other shells for non-bash users. HTH.