in reply to Re^2: Inserting Hash Information Into MySQL
in thread Inserting Hash Information Into MySQL

It seems to me that the values in your %hash are array-refs.

So you cannot simply insert them into the table as is.

I am not sure what you are trying to achieve but I assume you want something like this:

while(($key, $value) = each(%hash)){ for my $stat_value (@$value) { $sth->execute($key, $stat_value); } }

Replies are listed 'Best First'.
Re^4: Inserting Hash Information Into MySQL
by Anonymous Monk on Jun 20, 2012 at 17:23 UTC
    That was what I was looking for, and it worked perfectly. Thank you! I'm sorry for being unclear about what I was trying to achieve.