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).