in reply to How to check DBI module version from CPAN and how to upgrade the same from CPAN

Check which version of DBI you have:

cpan -D DBI

Example output:

Done! DBI ---------------------------------------------------------------------- +--- (no description) T/TI/TIMB/DBI-1.633.tar.gz D:\perl\perl\vendor\lib\DBI.pm Installed: 1.631 CPAN: 1.633 Not up to date Tim Bunce (TIMB) Tim.Bunce@pobox.com

Note that the installed version and cpan verison are listed, and it's pointed out where the installed module is not up to date. Just install the new version:

cpan DBI

Check out of date modules:

cpan -O