Skip Menu |

This queue is for tickets about the PDF-Reuse CPAN distribution.

Report information
The Basics
Id: 120459
Status: patched
Priority: 0/
Queue: PDF-Reuse

People
Owner: cnighs [...] cpan.org
Requestors: 'spro^^*%*^6ut# [...] &$%*c
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Uses deprecated defined %hash
$ perl5.24.0 -MPDF::Reuse -eprDocForm Can't use 'defined(%hash)' (Maybe you should just omit the defined()?)Compilation failed in require at /usr/local/lib/perl5/5.24.0/AutoLoader.pm line 34. at -e line 1. The offending line is 3754 or so in Reuse.pm. Why has this problem not shown itself sooner? Because of AutoLoader. These days AutoLoader is discouraged, since most computers have enough memory to load a whole module easily, but disk I/O is still relatively slow. In other words AutoLoader slows down the loading of the module. AutoLoader also helps to hide problems such as the use of defined %hash. PDF::Reuse passes its tests on perl5.24.0, because prDocForm is never loaded by the test suite. Simply commenting out ‘use AutoLoader qw(AUTOLOAD);’ and ‘__END__’ will make such problems more apparent (so they can be fixed sooner).
On Tue Feb 28 14:30:51 2017, SPROUT wrote: Show quoted text
> $ perl5.24.0 -MPDF::Reuse -eprDocForm > Can't use 'defined(%hash)' (Maybe you should just omit the > defined()?)Compilation failed in require at > /usr/local/lib/perl5/5.24.0/AutoLoader.pm line 34. > at -e line 1. > > The offending line is 3754 or so in Reuse.pm. > > Why has this problem not shown itself sooner? Because of AutoLoader. > > These days AutoLoader is discouraged, since most computers have enough > memory to load a whole module easily, but disk I/O is still relatively > slow. In other words AutoLoader slows down the loading of the module. > > AutoLoader also helps to hide problems such as the use of defined > %hash. PDF::Reuse passes its tests on perl5.24.0, because prDocForm > is never loaded by the test suite. > > Simply commenting out ‘use AutoLoader qw(AUTOLOAD);’ and > ‘__END__’ will make such problems more apparent (so they can be fixed > sooner).
This is patched in 0.40.