Subject: | "given is experimental" warnings |
Date: | Fri, 10 Jan 2014 17:07:32 +0000 |
To: | bug-Pod-HtmlEasy [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
On current perls, Pod-HtmlEasy generates a bunch of warnings:
given is experimental at /opt/perl-5.18.1/cpan/build/Pod-HtmlEasy-1.1.10-sHu9K8/blib/lib/Pod/HtmlEasy/Parser.pm line 245.
when is experimental at /opt/perl-5.18.1/cpan/build/Pod-HtmlEasy-1.1.10-sHu9K8/blib/lib/Pod/HtmlEasy/Parser.pm line 246.
You should either turn off that warning (lexically), accepting the risks
of using an experimental feature, or stop using given/when. As you're
only using exact string matches, nothing complicated, I think you're not
actually gaining enough from given/when to justify using an experimental
feature in production code. Attached patch changes it to if/elsif/else.
-zefram
Message body is not shown because sender requested not to inline it.