Just migrated to an ActiveState Perl distro (5.28) and new to the Perl community. I’m looking for something that does what is shown in the below code snippet, however, when I attempt to execute this, I get the following error message. How would I resolve this
Can’t locate Win32/File/VersionInfo.pm in @INC (you may need to install the Win32::File::VersionInfo module) (@INC contains: e:/Perl64/site/lib e:/Perl64/lib)
Code:
use Win32::File::VersionInfo;
my $foo = GetFileVersionInfo (“C:\path\to\file.dll” );
if` ( $foo ) {
print $foo->{FileVersion}, “\n”;
my $lang = ( ( keys %{$foo->{Lang}} )[0] );
if ( $lang) {
print $foo->{Lang}{$lang}{CompanyName}, “\n”;
}
…
}