Skip Menu |

This queue is for tickets about the HTML-Encoding CPAN distribution.

Report information
The Basics
Id: 61603
Status: resolved
Priority: 0/
Queue: HTML-Encoding

People
Owner: Nobody in particular
Requestors: DOUGDUDE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.60
Fixed in: (no value)



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";
Subject: Re: [rt.cpan.org #61603] Warnings in new Perls
Date: Fri, 24 Sep 2010 03:44:30 +0200
To: bug-HTML-Encoding [...] rt.cpan.org
From: Bjoern Hoehrmann <derhoermi [...] gmx.net>
* Douglas Christopher Wilson via RT wrote: Show quoted text
>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";
Thanks, I've made a change to that effect and 0.61 should be on its way. -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Confirmed that this works with Perl v5.12.2 and HTML::Encoding 0.61.