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.