Skip Menu |

This queue is for tickets about the Weather-Underground CPAN distribution.

Report information
The Basics
Id: 11546
Status: new
Priority: 0/
Queue: Weather-Underground

People
Owner: Nobody in particular
Requestors: mja [...] avalonroad.com
Cc:
AdminCc:

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



Use of uninitialized value in length at /usr/lib/perl5/site_perl/5.8.0/Weather/Underground.pm line 810. RHEL3
From: Henk Bokhoven
[guest - Thu Feb 17 17:40:19 2005]: Show quoted text
> Use of uninitialized value in length at > /usr/lib/perl5/site_perl/5.8.0/Weather/Underground.pm line 810. > > RHEL3
Same error on FreeBSD 4.11-RELEASE...
From: mja
I fixed this by concatenating an empty string to the windchill variables set on lines 808 and 809. They are now: ($windchill_celsius) = "".($stateref->{"content_WINDCHILL"} =~ /(-? (?:\d|\.)+)[^a-z0-9]*?c/\ i); ($windchill_fahrenheit) = "".($stateref->{"content_WINDCHILL"} =~ /(-?(?:\d|\.)+)[^a-z0-9]*?f/\ i); The windchill still doesn't display properly but the above fix eliminates the annoying error messages. [guest - Thu Mar 3 17:44:56 2005]: Show quoted text
> [guest - Thu Feb 17 17:40:19 2005]: >
> > Use of uninitialized value in length at > > /usr/lib/perl5/site_perl/5.8.0/Weather/Underground.pm line 810. > > > > RHEL3
> > > Same error on FreeBSD 4.11-RELEASE...