Subject: | "Smartmatch is experimental" warning on Perl 5.18 |
Loading Math::Polygon::Tree on Perl 5.18.1 issues several warnings:
Smartmatch is experimental at /usr/lib/perl5/site_perl/5.18.1/Math/Polygon/Tree.pm line 78.
Smartmatch is experimental at /usr/lib/perl5/site_perl/5.18.1/Math/Polygon/Tree.pm line 104.
Smartmatch is experimental at /usr/lib/perl5/site_perl/5.18.1/Math/Polygon/Tree.pm line 105.
Smartmatch is experimental at /usr/lib/perl5/site_perl/5.18.1/Math/Polygon/Tree.pm line 122.
Smartmatch is experimental at /usr/lib/perl5/site_perl/5.18.1/Math/Polygon/Tree.pm line 123.
Smartmatch is experimental at /usr/lib/perl5/site_perl/5.18.1/Math/Polygon/Tree.pm line 183.
Smartmatch is experimental at /usr/lib/perl5/site_perl/5.18.1/Math/Polygon/Tree.pm line 183.
I suggest replacing smartmatching by traditional == or eq. Should be very straight forward, except for the one case in line 78 where I don't even know what the operator is supposed to match. So in that case it would also increase readability a lot.