Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
my @columns = map { substr($_,1) } keys %{$q{'-values'}};Um, all that does is create a list of the columns with the first letter of the column name missing... Anyhow, about specifying the columns in any order in the SQL query, would the following code always work correctly?
All I'm really asking is whether the order of keys %hash and values %hash are always the same in perspective to each other... Update: lol, as soon as I finished posting this post, your update was there :) I understand now why you supplied the code you did. It was to get rid of the hyphens you thought were there :) In reply to Re: Re: Sorting hash values according to order of an array
by mt2k
|
|