$InsertIntoMetar = <prepare($InsertIntoMetar) or die "Can't prepare $InsertIntoMetar: $dbh->errstr\n"; $rv = $sth->execute ##Insert into production Metar table. or die "can't execute the query: $sth->errstr";