Subject: | bugreport |
Date: | Tue, 23 Jul 2019 14:18:51 +0200 |
To: | bug-PDF-Reuse [...] rt.cpan.org |
From: | René Uittenbogaard <ruittenb [...] gmail.com> |
Dear sir/madam,
There is a small problem with your module PDF::Reuse. On line 1096, it
reads:
{ $utrad = sprintf "%.10d 00000 n \n", $objekt[$i];
In order to prevent the following warning:
Use of uninitialized value within @PDF::Reuse::objekt in sprintf at
/usr/local/Cellar/perl/5.24.1/lib/perl5/site_perl/5.24.1/PDF/Reuse.pm line
1096.
You may want to consider patching line 1096 to:
{ $utrad = sprintf "%.10d 00000 n \n", defined($objekt[$i]) ?
$objekt[$i] : 0;
This would prevent endusers from getting an unnecessary warning.
Thanks in advance,
René Uittenbogaard