Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: data structure problem

by Zaxo (Archbishop)
on Jun 06, 2002 at 21:45 UTC ( [id://172369]=note: print w/replies, xml ) Need Help??

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]}}, $_;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://172369]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found