Help for this page

Select Code to Download


  1. or download this
    my @code_data = [
        ['US','USA','USD'],
    ...
    use constant currency => 2;
    print $translator{USA}[currency];
    print $translator{USD)[ccode];
    
  2. or download this
    # construct %translator as before, but only for unique keys
    for (@code_data) {
        push @{$translator{$_->[currency]}}, $_;
    }