[Classiccity-pm] Checking version of an installed module?

Jim Gifford jim at giffords.net
Tue Aug 5 14:32:00 CDT 2003


On Tue, Aug 05, 2003 at 03:11:44PM -0400, Darrell Golliher wrote:
> On Tue, Aug 05, 2003 at 03:03:21PM -0400, Jim Gifford wrote:
> 
> > 
> > Assuming well-behaved (ie, following the normal guidelines) modules, this
> > should work:
> > 
> > perl -MMyModule -e 'print $MyModule::VERSION,"\n"'
> > 
>   Thanks for the reply.  A quick check of three modules yields 1
>   success and 2 failures.   Bummer.
> 
> perl -MDBI -e 'print $DBI::VERSION,"\n"'
> perl -MDBI -e 'print $DBD::mysql::VERSION,"\n"'
> perl -MTime::HiRes -e 'print $Time::HiRes,"\n"'
> 
>    Anybody have another idea?
> 
> 
> -Darrell

hmm, very odd, but looks like you have some typos in there.

here's what I get with activestate perl:

C:\Perl\bin>perl -MDBD::mysql -e "print $DBD::mysql::VERSION"
2.9002
C:\Perl\bin>perl -MDBI -e "print $DBI::VERSION"
1.37
C:\Perl\bin>perl -MTime::HiRes -e "print $Time::HiRes::VERSION"
1.2
C:\Perl\bin>


jim



More information about the Classiccity-pm mailing list