develooper Front page | perl.perl5.porters | Postings from September 2022

Subroutine redefined warnings since Perl 5.35.9

Thread Next
From:
Kenichi Ishigaki
Date:
September 4, 2022 11:03
Subject:
Subroutine redefined warnings since Perl 5.35.9
Message ID:
CADp=7txMUV3N3+yW1nzd5SROa6KGn2kKmiBcHvV=FREGEamyAA@mail.gmail.com
Hi.

I have received a bug report
(https://github.com/makamaka/JSON-PP/issues/76) that says loading
JSON::PP after Cpanel::JSON::XS has started issuing Subroutine
redefined warnings (again) since Perl 5.36 (more precisely, 5.35.9).

The report suggests this should be fixed in JSON::PP, and it is
possible to add a weird workaround such as
https://metacpan.org/dist/Cpanel-JSON-XS/source/XS.pm#L2342 to
https://github.com/makamaka/JSON-PP/blob/master/lib/JSON/PP/Boolean.pm#L4-L11,
but I am wondering if this is more like a regression in Perl as the
warnings reappear only recently.

Any thoughts?

Kenichi Ishigaki

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About