$dbh = DBI->connect ("dbi:CSV:f_dir:/root", undef, undef, { f_ext => ".csv/r", RaiseError => 1, }) or die "Cannot connect: $DBI::errstr"; my $sql_query = "SELECT * FROM export"; my $sth = $dbh->prepare($sql_query); $sth->execute();