fwaeytens / dnsenum

dnsenum is a perl script that enumerates DNS information
614 stars 132 forks source link

Use experimental module for smartmatch #13

Open guikcd opened 7 years ago

guikcd commented 7 years ago

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.