Re: Parsing bug under Perl 5.6.1, and a fix
Sam Tregar <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 23 May 2006, Josh Clark wrote: > Here's a strange bug that I encountered while running HTML::Template 2.8 > under Perl 5.006001 (doesn't happen in the various flavors of 5.8 that I've > tried). Sounds like a good reason to upgrade. > The problem appears to be related to the uc function in line 1969: > > $which = uc($1); # which tag is it > > Doing something with $1 (e.g. printing it or assigning it to a variable) > before calling the uc function fixes the problem. > > $which = $1; > $which = uc($1); # which tag is it I've seen this kind of Perl bug before in 5.6.x Perls when dealing with UTF-8 data. Are you intentionally doing UTF-8 work with Perl 5.6? If not maybe you can force the data to be treated as plain ascii, perhaps by playing with your LC_LANG setting. -sam ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642