# Locale::Currency - ISO three letter codes for currency identification
# (ISO 4217)
#
-# $Id: Currency.pm,v 2.1 2002/02/06 04:07:10 neilb Exp $
+# $Id: Currency.pm,v 2.7 2004/06/10 21:19:34 neilb Exp $
#
package Locale::Currency;
# Public Global Variables
#-----------------------------------------------------------------------
use vars qw($VERSION @ISA @EXPORT);
-$VERSION = sprintf("%d.%02d", q$Revision: 2.1 $ =~ /(\d+)\.(\d+)/);
+$VERSION = sprintf("%d.%02d", q$Revision: 2.7 $ =~ /(\d+)\.(\d+)/);
@ISA = qw(Exporter);
@EXPORT = qw(&code2currency ¤cy2code
&all_currency_codes &all_currency_names );
# initialisation code - stuff the DATA into the CODES hash
#=======================================================================
{
- my $code;
- my $currency;
+ my $code;
+ my $currency;
+ local $_;
while (<DATA>)
$CODES{$code} = $currency;
$CURRENCIES{"\L$currency"} = $code;
}
+
+ close(DATA);
}
1;
byr:Belarussian Ruble
bzd:Belize Dollar
-cad:Candian Dollar
+cad:Canadian Dollar
cdf:Franc Congolais
chf:Swiss Franc
clf:Unidades de Formento