"DBD::SQLite::db do failed: near ")": syntax error at tableparser5.plx line 125 (#the line above), <> line 468.

DBD::SQLite::db do failed: near ")": syntax error at tableparser5.plx line 125, <> line 468."

I've tried multiple ways of writing the statement without avial. I have verified that my @array holds the information required. So I am assuming that this - that is writing the values of the array - cannot be done. So I tried another solution.

Use of uninitialized value within @station_head in concatenation (.) or string at tableparser5.plx line 125, <> line 468."

Now my question is: How exactly can I write the info in my @array into a database? The objective is to iterate through my %pair, on each iteration, push those values to @station_head and @station_data, then write that as a whole to the database instead of writing to the database on each iteration.