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!
In reply to Finding version of a particular CPAN module by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |