http://www.perlmonks.org?node_id=277255


in reply to How do I determine module version in my script?

I have never used DBI, so I don't know if you should get round the interface change in this way. However, to answer your question, most modules keep their version number in a variable $VERSION, so in DBI's case you can get to it via a variable $DBI::VERSION. Here's an example how I got at the CPAN module version:

 perl -MCPAN -e 'print "$CPAN::VERSION\n"'

Hope this helps