in reply to Locale Country not working
That will be because Netherlands Antilles is not a country and has not been one since 2010.
That is correct. The code was retired a number of versions ago.
If you really need to use codes that have been retired, the following will work (and is documented in the Locale::Codes::API document):
code2country('an', 'alpha-2', 'retired'); => 'Netherlands Antilles'