Re: How can I find the module version?

2003-06-11 Thread Tassilo von Parseval
On Tue, Jun 10, 2003 at 09:32:53AM -0400 Rick Ressegger wrote:

 If I want to know what version of a module is already installed on a system,
 how can I disclose this?

Either use Janek's suggestion or ask for the value of $VERSION for the
module in question:

perl -MSome::Module -e 'warn Some::Module-VERSION'

 Can multiple versions of a module exist in a library or does one get
 superceded by another that is installed later?

Usually older versions are replaced by newer versions. But see

http://search.cpan.org/author/INGY/only/

which allows you to install as many versions of a module as you want.
For that see INSTALLING MULTIPLE MODULE VERSIONS in the docs of
'only'.

Once you have several versions you can explicitely specify to use a
particular version of that module. That's also laid out in the docs.

Tassilo
-- 
$_=q#,}])!JAPH!qq(tsuJ[{@tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?=sub).+q#q!'qq.\t$.'!#+sexisexiixesixeseg;y~\n~~;eval


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How can I find the module version?

2003-06-10 Thread Rick Ressegger
If I want to know what version of a module is already installed on a system,
how can I disclose this?

Can multiple versions of a module exist in a library or does one get superceded
by another that is installed later?


Rick Ressegger

Fairmont WV


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I find the module version?

2003-06-10 Thread Janek Schleicher
Rick Ressegger wrote at Tue, 10 Jun 2003 09:32:53 -0400:

 If I want to know what version of a module is already installed on a system,
 how can I disclose this?

A simple way that works often is
perl -MModule::Name -e 'print $Module::Name::VERSION'

Another way would be e.g. to use the CPAN module
Module::Info

 Can multiple versions of a module exist in a library or does one get superceded
 by another that is installed later?

You can have as many different module versions on a system as you want.
The first module found in the paths,
specified by @INC is choosen.


Greetings,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]