I instrumented AnyDBD.pm because I could not get my module loaded:

  no strict 'refs';
     my $dir;
     ($dir = $self->{package}) =~ s/::/\//g;
     use Cwd;
     my $cwd = getcwd;
     load_module("$dir/Default.pm") or die "Cannot find 
$dir/Default.pm module! \
in $cwd";



Unless I am mistaken, what this revealed is that the success of 
DBIx::AnyDBD finding my subclasses was critically dependant on 
where I started my application from...

the problem with this is that I want to run my script from 
numerous directories and still have it work:

therefore AnyDBD.pm should look through %INC for the directory in 
which the package argument of its constructor call came from and 
look under there for Default.pm

am I missing something on this?



Reply via email to