You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In perl 5.38, the warning about given/when/smartmatch were moved from the experimental category to the new deprecated category. While the code suppress the former warnings:
bin/efa:no if $] >= 5.018, warnings => 'experimental::smartmatch';
lib/Travel/Routing/DE/EFA.pm:no if $] >= 5.018, warnings => "experimental::smartmatch";
lib/Travel/Routing/DE/VRR.pm:no if $] >= 5.018, warnings => "experimental::smartmatch";
the latter now show up, e.g. when running the test suite under 5.38:
given is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 179.
when is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 180.
when is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 181.
when is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 182.
given is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 198.
when is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 199.
when is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 200.
when is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 201.
Smartmatch is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 232.
Smartmatch is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 308.
Smartmatch is deprecated at /build/libtravel-routing-de-vrr-perl-2.21/blib/lib/Travel/Routing/DE/EFA.pm line 731.
Now one option would be to suppress the new warnings as well, e.g.
no if $] >= 5.017011, warnings => 'experimental::smartmatch';
no if $] >= 5.037010, warnings => 'deprecated::smartmatch';
but given the announcement that given/when/smartmatch is to be removed in 5.42, a rewrite of the affected code might be better in the long run.
Cheers,
gregor
The text was updated successfully, but these errors were encountered:
In perl 5.38, the warning about given/when/smartmatch were moved from the experimental category to the new deprecated category. While the code suppress the former warnings:
the latter now show up, e.g. when running the test suite under 5.38:
Now one option would be to suppress the new warnings as well, e.g.
but given the announcement that given/when/smartmatch is to be removed in 5.42, a rewrite of the affected code might be better in the long run.
Cheers,
gregor
The text was updated successfully, but these errors were encountered: