Subject: | "Smartmatch is experimental" warnings under Perl 5.18.0 |
I'm getting two "Smartmatch is experimental" warnings:
Smartmatch is experimental at /Users/ken/perl5/perlbrew/perls/perl-5.18.0t/lib/site_perl/5.18.0/Regexp/Debugger.pm line 219.
Smartmatch is experimental at /Users/ken/perl5/perlbrew/perls/perl-5.18.0t/lib/site_perl/5.18.0/Regexp/Debugger.pm line 2350.
Using: Perl 5.18.0
From cpan: Regexp::Debugger is up to date (0.001013).
This is a known issue documented in perl5180delta: "New mechanism for experimental features" (http://perldoc.perl.org/perl5180delta.html#New-mechanism-for-experimental-features)
Add this line to suppress warning messages:
no if $] >= 5.018, warnings => "experimental::smartmatch";
Thanks,
Ken.