Subject: | names_in_category method broken in scalar context |
DateTime::TimeZone->names_in_category( $category )
is broken when called in scalar context.
--------------------
use DateTime::TimeZone;
use Data::Dumper;
my $names = DateTime::TimeZone->names_in_category( 'Antarctica' );
print Dumper( $names );
--------------------
Output:
$VAR1 = [
[
'Casey',
'Davis',
'DumontDUrville',
'Mawson',
'McMurdo',
'Palmer',
'Rothera',
'Syowa',
'Vostok'
]
];
Note the extra set of brackets.