bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monasterians,
Is there a way to find out what version of a module my script is running if there are more than two versions installed?
My web host has an ancient version of DBD::mysql, so I THINK I successfully installed the latest version in my private directory, but I'm sure. How can I tell which one is running? And is there a way to force it to use the one I installed an not the web hosts'?
#!/usr/local/bin/perl -w print "Content-type: text/plain\n\n"; use lib "/usr/home/username/mylib/"; use strict; use Data::Dumper; use DBD::mysql; use ExtUtils::Installed; my $inst = ExtUtils::Installed->new(); my @modules = $inst->modules(); print Dumper(@modules); my $version = $inst->version('DBD::mysql'); print Dumper ($version);
...turned up nothing really. Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding version of a particular CPAN module
by jZed (Prior) on Dec 07, 2005 at 02:58 UTC | |
by bradcathey (Prior) on Dec 07, 2005 at 03:31 UTC | |
|
Re: Finding version of a particular CPAN module
by jacques (Priest) on Dec 08, 2005 at 00:15 UTC |