"Gabor Szabo" wrote in perl.qa : > While checking if the versions of all the modules are as > required in our installation I am using the following one liner to > fetch the version numbers. > > perl -MModule -e'print $Module::VERSION'
You should probably use -mModule to avoid calling Module::import(). (also, in some pathological cases, one can imagine that UNIVERSAL::VERSION() has been overidden) Side note: Abe Timmerman has a module, V, useful to get versions of installed modules: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-03/msg01038.html