Skip Menu |

This queue is for tickets about the Win32-File-VersionInfo CPAN distribution.

Report information
The Basics
Id: 27098
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Win32-File-VersionInfo

People
Owner: BRAD [...] cpan.org
Requestors: djgoku [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.03
Fixed in: 0.05



Subject: SYNOPSIS Error
Code taken from (http://search.cpan.org/~alexeyt/Win32-File-VersionInfo-0.03/VersionInfo.pm) 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"; } ... } my $lang = ( keys %{$foo->{Lang}} )[0] ); This above line should be: my $lang = ( ( keys %{$foo->{Lang}} )[0] );
Synopsis updated, thanks for your patience :-)