X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=examples%2FSchema%2Ftestdb.pl;h=0149bc2abbdb284af2bfc9d7ec7bc9c3f78574e9;hb=07a243ad8f4273317a028eb7a55a8682a713eba3;hp=32cbd6dafb4ab16b810c24229a90a197ccdf049f;hpb=409a3b1e1774dcaceb591544e656dd09e3a75878;p=dbsrgits%2FDBIx-Class.git diff --git a/examples/Schema/testdb.pl b/examples/Schema/testdb.pl index 32cbd6d..0149bc2 100755 --- a/examples/Schema/testdb.pl +++ b/examples/Schema/testdb.pl @@ -4,9 +4,9 @@ use warnings; use strict; use MyApp::Schema; +use DBIx::Class::_Util 'parent_dir'; -use Path::Class 'file'; -my $db_fn = file($INC{'MyApp/Schema.pm'})->dir->parent->file('db/example.db'); +my $db_fn = parent_dir( $INC{'MyApp/Schema.pm'} ) . '../db/example.db'; # for other DSNs, e.g. MySql, see the perldoc for the relevant dbd # driver, e.g perldoc L.