use strict; use warnings; use Data::Dumper; use Locale::SubCountry; my $country = new Locale::SubCountry('United States'); my @states = $country->all_codes; my @list; my %state_hash = $country->code_full_name_hash; our $subcountry = do { @list = map { { code => uc($_), name => $country->full_name($_ +) }} + @states; }; print Dumper(\@list);
In reply to Re: Mapping results of a Function
by perlfan
in thread Mapping results of a Function
by PerlSufi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |