Subject: | defined %hash deprecated in Perl 5.11 |
Hiya
Perl 5.11 complains about checks for defined %hash:
defined(%hash) is deprecated at
/export/home/stro/perl5115/lib/5.11.5/Locale/Maketext.pm line 404.
(Maybe you should just omit the defined()?)
The patch below removes that warnings and the test suite runs fine:
--- Locale-Maketext-1.13_82-old//lib/Locale/Maketext.pm 2009-06-24
04:23:47.000000000 +0200
+++ Locale-Maketext-1.13_82-new//lib/Locale/Maketext.pm 2010-03-11
08:34:01.000000000 +0100
@@ -401,7 +401,7 @@
my $module = $_[0]; # ASSUME sane module name!
{ no strict 'refs';
return($tried{$module} = 1)
- if defined(%{$module . '::Lexicon'}) or defined(@{$module .
'::ISA'});
+ if (%{$module . '::Lexicon'}) or (@{$module . '::ISA'});
# weird case: we never use'd it, but there it is!
}
thanks
Clint