Red Hat Bugzilla – Bug 834867
[PATCH] "defined(%hash) is deprecated" warning in Unicode::CharName
Last modified: 2012-06-24 11:37:15 EDT
Created attachment 593995 [details]
Debian patch fixing the warning
On newer perls (all current Fedora releases including 15 are affected), use of this module results in a deprecation warning. It's visible in the test suite:
$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/byteswap.t ... ok
defined(%hash) is deprecated at /builddir/build/BUILD/Unicode-String-2.09/blib/lib/Unicode/CharName.pm line 80.
(Maybe you should just omit the defined()?)
t/charname.t ... ok
t/encoding.t ... ok
t/op.t ......... ok
t/ord.t ........ ok
t/stringify.t .. ok
All tests successful.
Files=6, Tests=112, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.10 cusr 0.02 csys = 0.16 CPU)
Attached patch is from the debian bug for the same issue.
Note that this has been upstreamed as #74354 on CPAN's RT.
Fixed. Thanks for reporting the issue, Paul.