You should make sure that module DBI has been installed on your pc, then follow the bellow steps:
use DBI module in your perl script
use DBI;
Declare some primary parameters
my $driver = "MyDriver";
my $database = "DB_name";
my $dsn = "DBI:$driver:dbname=$datab...