in reply to Finding version of a particular CPAN module

In a script "$DBD::mysql::VERSION" will work. On the command line, With DBI related modules, there's a little trick which I (pshaw, false modesty, blah, blah) originally wrote. To use it do this (notice, no print statement):
perl -MDBI -e "DBI->installed_versions"
That will tell you the versions of perl, DBI, and all the DBDs you have.
  • Comment on Re: Finding version of a particular CPAN module

Replies are listed 'Best First'.
Re^2: Finding version of a particular CPAN module
by bradcathey (Prior) on Dec 07, 2005 at 03:31 UTC

    Thanks jZed? I ran this instead (needed it within a Perl script):

    use lib "/usr/home/username/modules/"; use DBD::mysql; print $DBD::mysql::VERSION;

    I tshowed up the one I installed, and not the host's older one. However, when I remarked out the use lib line, it found the host's version. So, now I've answered some of my own OP.


    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot