my $dbpath = 'C:/my/path/stats.db'; my $dsn = "dbi:SQLite:$dbpath"; my $dbh = DBI->connect( $dsn, '', '', { RaiseError => 1, AutoCommit => 1 } );