I purchased a script and I can't connect to the database and when i debug the script it tells me that it cannot locate the DBI. here is the script can anyone tell me if it is configured right.

use DBI;
$dbh = DBI->connect("dbi:mysql:$mysqldatabasename","$mysqlusername","$mysqlpassword") || die("Couldn't connect to database!\n");
&lookup;
&save;

$dbh->disconnect;