Closed jkeenan closed 4 years ago
I figured out a work-around for t/09_gentag.t in commit 78482fccd5, namely, simply capture the warning and do nothing further with it.
I figured out a work-around for t/09_gentag.t in commit 78482fc, namely, simply capture the warning and do nothing further with it.
Patches submitted upstream at https://rt.cpan.org/Ticket/Display.html?id=133514.
Closing ticket.
In the
alpha-dev-03-warnings
branch -- i.e., once we've turned on warnings by default --cpan/Text-Balanced/t/09_gentag.t
emits these warnings:The relevant code:
So the warning is coming from inside the string
eval
at line 32.In most other places in this branch, we would suppress this warning by prepending
no warnings 'redefine';
to the beginning of$str
.However, on CPAN this distribution has an implicit minimum version of perl 5.003_096 (from
Makefile.PL
). AFAIK, thewarnings
pragma did not exist prior to perl 5.6. So we can't useno warnings
here without major surgery.More generally,
$^W
is used liberally throughout this CPAN distribution:How should we proceed? What should we request of the upstream maintainer?
@atoomic, @toddr
Thank you very much. Jim Keenan