Microsoft Windows [Version 10.0.19045.2364]
(c) Microsoft Corporation. All rights reserved.
C:\Users\ken>perlmodver DBI
Module: DBI
Version: 1.642
Location: C:/Users/ken/local/opt/strawberry_perl/5_026_003/install/perl/vendor/lib/DBI.pm
C:\Users\ken>perlmodver DBD::mysql
Module: DBD::mysql
Version: 4.049
Location: C:/Users/ken/local/opt/strawberry_perl/5_026_003/install/perl/vendor/lib/DBD/mysql.pm
####
C:\Users\ken>where perlmodver
C:\Users\ken\local\bin\perlmodver.bat
C:\Users\ken>more C:\Users\ken\local\bin\perlmodver.bat
@echo off
perl -E "my ($err_msg, $missing); BEGIN { $err_msg = q{}; $missing = 0; eval { require %1; 1; } or ($err_msg, $missing) = ($@,1); } say q{Module: %1}; if ($missing) { say qq{Not installed.\n\@INC:}; say qq{\t$_} for @INC; say qq{ERROR MESSAGE:\n$err_msg}; } else { say qq{Version: $%1::VERSION\nLocation: $INC{q{%1} =~ s{::}{\/}gr . q{.pm}}}; }"
####
C:\Users\ken>where perl
C:\Users\ken\local\opt\strawberry_perl\5_026_003\install\perl\bin\perl.exe
C:\Users\ken>where cpan
C:\Users\ken\local\opt\strawberry_perl\5_026_003\install\perl\bin\cpan.bat