use FW::Database; use XML::Parser; . .# a lot of stuff that constructs $stmt . DB_insertdata($stmt, $dbh);