Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How do i sort a hash or array?

by gam3 (Curate)
on Jan 21, 2008 at 13:51 UTC ( [id://663375]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %person = (
                 firstname => ['name1', 'name2', 'name3'],
                 lastname => ['lname1', 'lname2', 'lname3'],
                 city => ['city1','city2','city3']
              );
    
  2. or download this
    $person = {
                 firstname => ['name1', 'name2', 'name3'],
                 lastname => ['lname1', 'lname2', 'lname3'],
                 city => ['city1','city2','city3']
              };
    
  3. or download this
    %person = (
                 firstname => ['name2', 'name1', 'name3'],
    ...
               $person{lastname}[$_],
               $person{city}[$_]);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-18 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found