I had a look at the docs for
DBD::ODBC and found out that you can use database files just like you are doing
(but in perl :).
DBD::ODBC is a driver for
DBI which is usually the recommended system for
dealing with databases because it has supports for anything from flatfile databases (
DBD::CSV) to getting data from
oracle (
DBD::Oracle), and all with the same syntax (allowing you to change between them at will).
Here's the code that worked for me to connect to a access database file:
my $dbh=DBI->connect("dbi:ODBC:driver={Microsoft Access Driver (*.mdb)};DBQ=$filename",'','',{RaiseError => 1});
From there everything else is standard
DBI syntax which is easy to find examples of.