Subject: | local @INC in Net::DNS::RR does not support objects/hooks. |
See this line https://metacpan.org/source/NLNETLABS/Net-DNS-1.09/lib/Net/DNS/RR.pm#L39 Seems to be introduced since version 1.07 but I don't find it described in Changelog.
When it stores @INC to LIB, it now accepts only plain strings and filters out complex items. I wonder why it's designed this way.
In our company we use object in @INC. We store each CPAN package's files into all different directories from other packages. The object we use in @INC serves as cache for what files contained within a package. And it in a string context evaluates to a lib path. With recent versions of DNS::Net our mechanism has got broken because of the line mentioned above.
I would suggest removing that filter at that line. I don't see the reason of the grep operation.
use constant LIB => @INC;