names_in_country works fine in list context, but returns a list ref to a
list ref in scalar context.
-------------------------------
REPRODUCE WITH:
perl -MDateTime::TimeZone -MData::Dumper -e 'print
Dumper(scalar(DateTime::TimeZone->names_in_country("US")))'
-------------------------------
FIX WITH:
1852c1852
< return wantarray ? @{ $DateTime::TimeZone::ZONES_BY_COUNTRY{ lc
$_[0] } } : [ $DateTime::TimeZone::ZONES_BY_COUNTRY{ lc $_[0] } ];
---
Show quoted text
> return wantarray ? @{ $DateTime::TimeZone::ZONES_BY_COUNTRY{ lc
$_[0] } } : $DateTime::TimeZone::ZONES_BY_COUNTRY{ lc $_[0] };
-------------------------------
thanks!