Subject: | No languages for Puerto Rico |
This program should print Spanish (or possibly English). However it dies:
#!/usr/bin/perl -wT
use strict;
use warnings;
use diagnostics;
use Locale::Object::Country;
my $l = Locale::Object::Country->new(code_alpha2 => 'PR');
my $lang = ($l->languages_official)[0];
die "Should have save said either Spanish or English" unless($lang);
print "$lang\n";