X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=examples%2FSchema%2Finsertdb.pl;h=4fb22fa590b8de3105590e1a9599281bd61103c9;hb=adcc1df0049e0093cb94c867bd2be8c9fe242a61;hp=ae919b37271a7bd5d1f4ff3f9a021f6415599e7d;hpb=409a3b1e1774dcaceb591544e656dd09e3a75878;p=dbsrgits%2FDBIx-Class.git diff --git a/examples/Schema/insertdb.pl b/examples/Schema/insertdb.pl index ae919b3..4fb22fa 100755 --- a/examples/Schema/insertdb.pl +++ b/examples/Schema/insertdb.pl @@ -4,9 +4,9 @@ use strict; use warnings; 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'; my $schema = MyApp::Schema->connect("dbi:SQLite:$db_fn");