BEGIN {
# This is the sample application. Change this to the path to your
# database. (or use mysql or something)
-BeerDB->setup("dbi:SQLite:t/beerdb.db");
+eval { require DBD::SQLite };
+if ($@) {
+ BeerDB->setup("dbi:SQLite2:t/beerdb.db");
+} else {
+ BeerDB->setup("dbi:SQLite:t/beerdb.db");
+}
}
# Give it a name.