Subject: | Warnings in new Perls |
In newer versions of perl, using lc on an undefined value causes a
warning. In my scripts, I am getting lots of
Use of uninitialized value $hash{"http-equiv"} in lc at
C:/strawberry/perl/site/lib/HTML/Encoding.pm line 160.
because of this. The fix is to change line 160 of Encoding.pm in release
0.30 from
next unless lc $hash{'http-equiv'} eq "content-type";
to
next unless exists $hash{'http-equiv'} && lc $hash{'http-equiv'} eq
"content-type";