Get rid of Path::Class ( that *does* feel good )
[dbsrgits/DBIx-Class.git] / examples / Schema / insertdb.pl
index ae919b3..4fb22fa 100755 (executable)
@@ -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");