Subject: | Producer string in PDF info is "App::pod2pdf version unknown" |
Date: | Mon, 12 Dec 2011 11:08:35 +0800 |
To: | bug-pod2pdf [...] rt.cpan.org |
From: | Guo Yixuan <culu.gyx [...] gmail.com> |
Perl: This is perl 5, version 14, subversion 2 (v5.14.2) built for
i486-linux-gnu-thread-multi-64int
OS : Debian/testing
Package: pod2pdf
Version: 0.42-2
The version info of generated PDF is wrong ("unknown").
The cause is in lib/App/pod2pdf.pm, line 427
my $version = $::{$class.'::'}{VERSION} ? ${
$::{$class.'::'}{VERSION} } : 'unknown';
the result is that $version is set to "unknown".
This is because $class is "App::pod2pdf", and to access the type glob of
$App::pod2pdf::VERSION, the code has to be like this:
$::{"App::"}{"pod2pdf::"}{VERSION}
not
$::{"App::pod2pdf::"}{VERSION}
I wonder if it is really needed to care for $VERSION in some derived
class, if not, simply "$version = $App::pod2pdf::VERSION" is enough.
Guo Yixuan