RE: Version Number of Package

2001-02-02 Thread Trevor Joerges
Title: RE: Version Number of Package





ppm query DBI


-Original Message-
From: Purcell, Scott [mailto:[EMAIL PROTECTED]]
Sent: January 31, 2001 02:06 PM
To: '[EMAIL PROTECTED]'
Subject: Version Number of Package



How does one get the version of a installed package?


EG. If I want to know which version of the DBI I have, what do I do?


Thanks,
Scott Purcell


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users





Re: Version Number of Package

2001-02-01 Thread Hirosi Taguti

 How does one get the version of a installed package?
 EG. If I want to know which version of the DBI I have, what do I do?

I will do...

C:\ppm query DBI
DBI [1.14] Database independent interface for Perl

C:\

--
[EMAIL PROTECTED]
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Re: Version Number of Package

2001-02-01 Thread Philip Newton

Purcell, Scott wrote:
 How does one get the version of a installed package?
 
 EG. If I want to know which version of the DBI I have, what do I do?

This often works:

perl -MMy::Module -e "print $My::Module::VERSION"

, since, by convention, modules contain a variable $VERSION containing the
version number (this is also what tells MakeMaker what version it is). Not
every module does it this way, but it's a good first shot.

Cheers,
Philip

PS: On Unix, I do this:

perl -MMy::Module -le 'print $My::Module::VERSION"

; that is, besides changing the double quotes to single to protect the $
from the shell, I add the -l flag so that Perl will add a newline after the
string. Otherwise output tends to look like this:

pne$ perl -MMy::Module -e 'print $My::Module::VERSION'
3.14pne $

-Ph.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users



Re: Version Number of Package

2001-01-31 Thread $Bill Luebkert

"Purcell, Scott" wrote:
 
 How does one get the version of a installed package?
 
 EG. If I want to know which version of the DBI I have, what do I do?

When in doubt, use your trusty editor and search for version (upper/lower case).

-- 
  ,-/-  __  _  _ $Bill Luebkert   ICQ=14439852
 (_/   /  )// //   DBE Collectibles   http://www.todbe.com/
  / ) /--  o // //  Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/__/_/_http://www.freeyellow.com/members/dbecoll/
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users