in reply to Define(@array) is Deprecated

G'day PilotinControl,

There was a change to that deprecation warning in v5.16.0 (see perl5160delta: New Diagnostics).

"The long-deprecated defined(@array) now also warns for package variables. Previously it issued a warning for lexical variables only."

There was a bug report raised for this issue 8 months ago: Bug #77800 for PDF-Reuse: Deprecation Warnings in Perl 5.16.0

PDF::Reuse (v0.35) (the current version at the time of writing) has not changed in ~6 years. There have been bugs raised over its lifetime: at least 13 appear to be for this specific version and all remain active (see Active bugs for PDF-Reuse).

I don't personally have any knowledge of this module, but it's quite possible that maintenance has been abandoned. Your options would seem to be:

By the way, check the version of Perl you're running on "WinXP": if it's earlier than 5.16.0, that would explain why the warnings are absent there.

-- Ken