Skip Menu |

This queue is for tickets about the Parse-HTTP-UserAgent CPAN distribution.

Report information
The Basics
Id: 72159
Status: resolved
Priority: 0/
Queue: Parse-HTTP-UserAgent

People
Owner: Nobody in particular
Requestors: 1and1 [...] canadaballoons.com
Cc:
AdminCc:

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



Subject: Warning with 64 bit Perl or Perl 5.14.1
Date: Thu, 3 Nov 2011 23:05:44 -0400
To: bug-Parse-HTTP-UserAgent [...] rt.cpan.org
From: Arsen Shirokov <1and1 [...] canadaballoons.com>
When parsing the below UserAgent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2 with 64 bit ActiveState Perl 5.14.1: This is perl 5, version 14, subversion 1 (v5.14.1) built for MSWin32-x64-multi-thread (with 1 registered patch, see perl -V for more detail) Binary build 1401 [294969] provided by ActiveState http://www.ActiveState.com Built Jun 16 2011 17:28:49 a warning is generated: Use of uninitialized value in numeric eq (==) at Parse/HTTP/UserAgent/Base/Parsers.pm line 181. Other UserAgents I've seen so far parse without warnings. Also, the same UserAgent parses without warnings on 32 bit ActiveState Perl 5.12.2: This is perl 5, version 12, subversion 2 (v5.12.2) built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) Binary build 1203 [294165] provided by ActiveState http://www.ActiveState.com Built Dec  9 2010 04:03:28 Sorry, can't compare between 32 and 64 bit Perl of the same exact version, so, not sure if this is caused by 5.14.1 or by 64 bit.
03 Kas 2011 Prş, 23:06:15 tarihinde, 1and1@canadaballoons.com yazdı: Show quoted text
> Sorry, can't compare between 32 and 64 bit Perl of the same exact > version, so, not sure if this is caused by 5.14.1 or by 64 bit.
Hi, 5.12 seems to be buggy in this regard. It does not warn when undef is passed to length(). 5.10 and 5.14 indeed warns. The issue is fixed in v0.32, which'll be available in the mirrors shortly. Thanks, Burak