dnsenum icon indicating copy to clipboard operation
dnsenum copied to clipboard

Use experimental module for smartmatch

Open guikcd opened this issue 7 years ago • 0 comments

The smartmatch feature has been introduced in perl but not marked as experimental at the start. With perl >= 5.18, the feature has been marked as experimental and as dnsenum use it:

[...]
if (!($rr->can('address') && $rr->address ~~ @wildcardaddress) && !($rr->name ~~ @wildcardcname))
[...]

the following warning appear at each execution:

Smartmatch is experimental at ./dnsenum.pl line 698.

I've proposed to conditionnaly load https://metacpan.org/pod/experimental module to avoid these warning.

guikcd avatar Apr 15 '17 21:04 guikcd