>>
I think the problem with the original may be the space between $col and ($db_cols).
<<
Perl ignores spaces so it isn't an issue most of the time. The problem is with trying to loop using a scalar. You need to use @db_cols.
I think the problem with the original may be the space between $col and ($db_cols).
<<
Perl ignores spaces so it isn't an issue most of the time. The problem is with trying to loop using a scalar. You need to use @db_cols.