- or download this
foreach (@fields) {
...
$sth->execute(values %$_);
}
- or download this
# list your headers
my @heading = qw[description billing_code user_id
...
foreach my $row (@fields) {
$sth->execute( map { $row{$_} } @heading );
}
- or download this
my @heading;
{
...
$sth->execute;
@heading = @{ $sth->{NAME_lc} };
}