in reply to hash key lookups failing
Anyway this code you posted :
Does not fetch into a hashref. Why would you think a function called fetchall_arrayref returns a hashreference? I think you should also type perldoc DBI and read that as well.my @keys=$count_stmnt->fetchall_arrayref(); $vals=@keys[0];
Here is how to get a hashref and use it
But like I said, you appear to have a large number of basic and crucial misunderstandings. Also buy the book "Programming the Perl DBI" from O'Reilly.my $hashref = $sth->fetchrow_hashref; $hashref->{key};
I hope this post sounds direct but not rude.
|
|---|