Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Sorting hash values according to order of an array

by mt2k (Hermit)
on Nov 24, 2002 at 01:45 UTC ( #215458=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %TABLES = (      # Hash identifying one database
      'users' => [      # Hash keys are the database's tables
    ...
        'rating'
      ]
    );
    
  2. or download this
    $handle->insert (
      -table        =>  "users",
    ...
        rating        =>  10
      }
    );
    
  3. or download this
    sub insert {
      my ($self, %q) = @_;
    ...
    
      # This is the line that causes problems. Read below for more.
      $sth->execute(values %{$q{'-values'}});
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-10-02 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (11 votes). Check out past polls.

    Notices?