Subject: | $classargs{list} is undefined for NumWithUnit values |
Date: | Sat, 13 Jun 2009 22:00:54 +0100 |
To: | bug-Geo-OSM-MapFeatures [...] rt.cpan.org |
From: | Simon Ward <simon [...] bleah.co.uk> |
Message body not shown because it is not plain text.
Distribution: Geo-OSM-MapFeatures-0.04
Perl version: v5.10.0 built for i486-linux-gnu-thread-multi
Operating system: Debian squeeze/sid
Kernel: Linux whoosh 2.6.26-2-686 #1 SMP Thu Mar 26 01:08:11 UTC 2009 i686 GNU/Linux
Geo-OSM-MapFeatures fails with the following error when attempting to
parse height and width values (mapfeatures.debug file attached):
Can't use an undefined value as an ARRAY reference at
/usr/share/perl5/Geo/OSM/MapFeatures/Feature/Value/NumWithUnit.pm
line 51.
The attached program (test-numwithunit.pl) demonstrates it.
The problem appears to be with Feature/Value.pm passing %classargs
containing a 'units' key and Feature/Value/NumWithUnit.pm expecting a
hash containing a 'list' key.
The tiny patch attached fixes it by changing NumWithUnit.pm to refer to
$classargs{units}.
Simon Ward
--
A complex system that works is invariably found to have evolved from a
simple system that works.—John Gall
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.