use Test::More qw( no_plan ); use MyPackage; # relative path my $p1 = MyPackage->new( -config => 't/test.conf' ); # more portable variation use File::Spec; my $p1 = MyPackage->new( -config => File::Spec->catfile('t', 'test.conf') );