Is there anyway to flatten the results of selectall_hashref ? Here is what I had to do in my sub:

sub clans {

my $clan_list = $dbh->selectall_hashref($SQL, 'id');

 # the "flattening" that I was hoping DBI could do somehow :)
 my @ret;
 for my $id (sort keys %$clan_list) {
   push @ret, $clan_list->{$id};
 }

[EMAIL PROTECTED];

}



Also, do you think that DBI should throw a warning or exception if the attribute FetchHashAsRowKey is set to something other than NAME or NAME_lc?

I caught a bit of hell last night because I accidentally set it to 0.





Reply via email to