On Fri Mar 24 21:57:06 2017, ZDM wrote:
Show quoted text> require Net::DNS::Resolver::MSWin32;
> Bareword "KEY_READ" not allowed while "strict subs" in use at
> d:/devel/perl/perl/site/lib/Net/DNS/Resolver/MSWin32.pm line 66.
>
> Please, fix imports.
The compiler elects to treat the bare word as a quoted string. Tie::Registry, for reasons of its own, accepts {Access => 'KEY_READ'} as an alternative to the value of the imported constant. Although obviously wrong, the failed import therefore has no material effect beyond creating unwelcome compiler noise.
Testing and subsequent analysis exposed four further bugs:
1) The local domain name is retrieved but never appears in the searchlist.
2) Search list entries differing only by the trailing '.' are not recognised as duplicates.
3) The same code fragment appears in cygwin.pm and in that context, searchlist entries differing only by upper/lower case are not recognised as duplicates.
4) A search list entry with a trailing '.' causes the "devolution" loop to add an unadorned TLD label to the searchlist.