http://www.perlmonks.org?node_id=1018548


in reply to Re: Finding Module Versions - How Would You Do It?
in thread Finding Module Versions - How Would You Do It?

I have this bash function in my .bashrc:

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

which is based along similar lines and works for me. It is invoked like this:

pmv Test::More

Simple, but effective.