On Wed, 12 Jul 2006 13:41:16 +0300, "Gabor Szabo" <[EMAIL PROTECTED]> wrote:
> 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' Not really reliable :) But the more reliable ways take some post-processing pc09:/home/merijn 108 > perl -le'require V;print V::get_version("DBI")' 1.51 pc09:/home/merijn 109 > perl -MExtUtils::Installed -le'print ExtUtils::Installed->new->version("DBI")' 1.51 pc09:/home/merijn 110 > perl -MV=DBI DBI /pro/lib/perl5/site_perl/5.8.7/i686-linux-64int/DBI.pm: 1.51 pc09:/home/merijn 111 > perl -le'require V;print V::get_version("DBI")' 1.51 pc09:/home/merijn 112 > perl -MDBI=999999 DBI version 999999 required--this is only version 1.51 at /pro/lib/perl5/5.8.7/Exporter/Heavy.pm line 121. BEGIN failed--compilation aborted. Exit 9 pc09:/home/merijn 113 > V is not (yet) on CPAN: http://www.test-smoke.org/otherperl.html > Some of the modules print extra error messages and some print > only error messages. > I have sent e-mail to the respective module authors reporting this > issue but I wonder if it would this a good practice in the genric case. > > Is there a Test module that test just the above? > Is the a CPANST score one can get if all the modules in a distro > provide the correct version information and if they don't print anything > else to STDOUT or STDERR. -- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2, 5.8.x, 5.9.x on HP-UX 10.20, 11.00, 11.11, & 11.23, SuSE 10.0, AIX 4.3 & 5.2, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/